Splitting sign in and sign up UI + django signout ...
# support-questions-legacy
n
Hi @tuan_123.
At the moment it is not possible to split the sign up and sign in UI since they are in the same component. You can toggle between showing sign in or sign up by default but that is the extent of it
For the issue with sign out that you are having, can you post the request and response headers of the sign out API call?
t
I use the same as your example !

https://cdn.discordapp.com/attachments/1110515964254093374/1110534304565571594/Screenshot_2023-05-23_at_14.46.35.png

https://cdn.discordapp.com/attachments/1110515964254093374/1110534504369627176/Screenshot_2023-05-23_at_14.47.33.png

https://cdn.discordapp.com/attachments/1110515964254093374/1110534638390222898/Screenshot_2023-05-23_at_14.48.05.png

@nkshah2
n
Can you post the rest of the request headers?
t
Here you are !

https://cdn.discordapp.com/attachments/1110515964254093374/1110882362914508842/Screenshot_2023-05-24_at_13.49.23.png

do you need my code in backend Django !

https://cdn.discordapp.com/attachments/1110515964254093374/1110882688879038464/Screenshot_2023-05-24_at_13.51.01.png

n
The apiDomain seems to be different on the frontend and backend, be sure to use the same value
Either both should use the IP or both should use localhost
t
actually I think I set up correct on my front end side !

https://cdn.discordapp.com/attachments/1110515964254093374/1110924690031132762/Screenshot_2023-05-24_at_16.36.55.png

so I use React for 3000 vs backend as 8000
n
What’s the response from the login api?
t

https://cdn.discordapp.com/attachments/1110515964254093374/1110926138001326220/Screenshot_2023-05-24_at_16.43.38.png

https://cdn.discordapp.com/attachments/1110515964254093374/1110926138294935672/Screenshot_2023-05-24_at_16.43.46.png

yah it login success !

https://cdn.discordapp.com/attachments/1110515964254093374/1110926397305790555/Screenshot_2023-05-24_at_16.44.46.png

n
Looks like the set cookie header is missing in the response
If you use a proxy or something similar I would double check if that is removing the header by accident
t
I just removed Proxy from React side !
do we need to add any Parameter in " signOut" query ?
n
Nope
Also I meant proxy for your backend since that’s what is missing the headers
t
I really appreciate your help:
actually I use "npx create-supertokens-app@latest --recipe=thirdparty"
for testing first !
I test with backend using NodeJs vs Python Django
But the fact is only NodeJs server work with log out !
Python Server can log in, but It doesnt work when I log out or call API
You are right that when It doesnt show header, when I use Python to login:

https://cdn.discordapp.com/attachments/1110515964254093374/1111019116829085766/Screenshot_2023-05-24_at_22.53.14.png

but as you see when I use Node Js to logout, It still not show header, but I can call API and log out successful !

https://cdn.discordapp.com/attachments/1110515964254093374/1111019647865733160/Screenshot_2023-05-24_at_22.54.43.png

n
Is this from python or Node?
t
it's from Python
I just use your example !
n
Right so can you paste the value for all the set cookie headers here, the screenshot includes it but the value isn’t fully on screen
Also do you see any warning symbols next to the set cookie header value?
t
this when i log in success by python,

https://cdn.discordapp.com/attachments/1110515964254093374/1111264671916376084/Screenshot_2023-05-25_at_15.06.11.png

then I call Api vs log out , look like it keep sending me "refresh token"

https://cdn.discordapp.com/attachments/1110515964254093374/1111264853592641566/Screenshot_2023-05-25_at_15.06.21.png

https://cdn.discordapp.com/attachments/1110515964254093374/1111264853861093407/Screenshot_2023-05-25_at_15.06.28.png

but when I use NodeJs, I dont get new refresh token and It work nicely !
n
I need to see the full value of the set cookie header from the login api
t
on python code right ?
n
In your browsers network tab, the response headers have the set cookie header
I need the full value of that
t
set-cookie:

https://cdn.discordapp.com/attachments/1110515964254093374/1111266134688280699/Screenshot_2023-05-25_at_15.14.37.png

sAccessToken=eyJraWQiOiJkLTE2ODQ4MzcyOTQ3ODUiLCJ0eXAiOiJKV1QiLCJ2ZXJzaW9uIjoiMyIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIyZGE4OWMxNy01NTc0LTQ1Y2EtOGY3OC05NDQxNjEyNTc3MGIiLCJleHAiOjE2ODUwMjA0MDgsImlhdCI6MTY4NTAxNjgwOCwic2Vzc2lvbkhhbmRsZSI6IjZjMmI3ZDE2LWI4NGUtNDc1YS04ZjYyLTg3Y2Y1Y2YwNzdjZiIsInJlZnJlc2hUb2tlbkhhc2gxIjoiMmI0ZDljMTE5ODE3NzZiZmQ4ZjE4ZTVjMzAzY2Y0NDk1ZmQ4NTg2ODY0OTM2Y2Q5ODhiMmNiOWNiNWFmYzZhMSIsInBhcmVudFJlZnJlc2hUb2tlbkhhc2gxIjpudWxsLCJhbnRpQ3NyZlRva2VuIjpudWxsLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDEvYXV0aCJ9.ZZyX3K5iouCpCKD-3JxO7VmbMIlJV7kbBfceG6YO5eZQz4kTgNmBdCXGWQ3qjQa5N5zs8UE1fIoj5rTTMwbwPgeVs5RyPzGJX3fj7OU-PUH3RVnpxVYfpsXpAJl7xtMeioKUNadJCJR7xhI2ikT9A1WC0EO0Z3SMG6HJRthSt2FevkSPmSZTZ-0ApT2f5xY3ifEhqVo62wOaG_-ISxy3ECrFejg-15tZVuPyqg8-Yqn3ZfH37f2vIXX-LHlsivAt7CfeCy3ZDc0oPI4NdOIEylWdARE3NMEi8Friu8-HLpnjJMxtP_wSeUxxjN5H4q0getkmbba0Php_bW7-MlqHPQ; expires=Sat, 01 May 2123 12:13:29 GMT; HttpOnly; Path=/; SameSite=lax
there are second : sRefreshToken="5NtBvpzFKq/QhIisgZI/XtROjmAfyYXEdZgrJrZ4PSPmqgt%2BYdtjfhWfgZDRbY7OsOjVrrfFVrwiGqIBdFttVpEnRzRs5qYqxlPTI7Cf34lV8KimvTzFt0XASEySdgh258%2BsFIg0Y1iYjOaTCNXiTu%2BZ6/2kM/P6izHPHdpygTRsJFYazUG3tns5uyjNFrhXNS876GrhMeXdPaWikLQ/WqpCrecenp2I59vmCD3L3dTYMB1FeayxvR22I%2BHeyRDq/SfuwEZXuUgsGynJs%2BwR.f7c7d4a35c7a05982297b419c2512570d7fd897961ddb0ae36924cf6d064930f.V2"; expires=Sat, 02 Sep 2023 12:13:29 GMT; HttpOnly; Path=/auth/session/refresh; SameSite=lax
n
And when you call the sign out api does it use localhost/auth/signout or does it use ipadress/auth/signout?
t
I use localhost/auth/signout
n
Right so in that case you should use localhost for the api domain in both the frontend and backend as well
t

https://cdn.discordapp.com/attachments/1110515964254093374/1111266573617999995/Screenshot_2023-05-25_at_15.16.30.png

yah, I just run your example !

https://cdn.discordapp.com/attachments/1110515964254093374/1111266822117933146/Screenshot_2023-05-25_at_15.17.10.png

https://cdn.discordapp.com/attachments/1110515964254093374/1111266822424100904/Screenshot_2023-05-25_at_15.17.23.png

I dont event touch a single line !
n
Can you send the backend config again please (the one you pass to SuperTokens init)
t

https://cdn.discordapp.com/attachments/1110515964254093374/1111267174200385576/Screenshot_2023-05-25_at_15.18.56.png

n
Hmm perhaps @KShivendu can help better here
t
Please,
k
@tuan_123. what version of the SDK are you using?
also, can you try replicating this issue once with a different python framework (example Fastapi)
2 Views