https://supertokens.com/ logo
#support-questions
Title
# support-questions
t

TJ Biegner

06/30/2022, 9:32 PM
resulted in this response
Copy code
Access-Control-Expose-Headers: front-token
...
Set-Cookie: sAccessToken=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsInZlcnNpb24iOiIyIn0%3D.eyJzZXNzaW9uSGFuZGxlIjoiYmZmYzMwOTgtY2M3MC00NDM4LWEzOGMtMmRiNmRlYTFhMjA0IiwidXNlcklkIjoiZGNiNjY0NjItN2QxNS00OTAyLWJjY2ItODEyNjMwN2VlOGE1IiwicmVmcmVzaFRva2VuSGFzaDEiOiJkY2ZiYmUzZTczZjk4NmZkNjEwZGNiM2ZhMTk4YzJiMThhZjU3YTI0ZjgyMTk2ZmJkY2IyNTZjOGY1NTYzYzEyIiwidXNlckRhdGEiOnsicHJvZmlsZSI6eyJ1c2VySWQiOiJkY2I2NjQ2Mi03ZDE1LTQ5MDItYmNjYi04MTI2MzA3ZWU4YTUiLCJkZWZhdWx0Q29tcGFyaXNvblNldElkIjoiYzY1OTQ5ZmMtM2UwNy00NzViLWFjNmQtZjc1ZDZmMjk2NTVlIiwiY3VycmVudE1pbmVJZCI6IjQxMDQyMTAiLCItIjoiMjAyMi0wNi0zMFQwNToxMjo1Ni44MTc2MjhaIn0sInVzZXJEYXRhIjp7ImNvbXBhbnlOYW1lIjoiQmllZ25lciIsImNyZWF0ZWRBdCI6IjAwMDEtMDEtMDFUMDA6MDA6MDBaIiwiZW1haWwiOiJ0b20rNTlAYW1vc3NvZnR3YXJlLmNvbSIsIm1pbmVJZCI6IiIsIm5hbWUiOiJUSiIsInRpdGxlIjoiRU5HIiwidXNlcklkIjoiZGNiNjY0NjItN2QxNS00OTAyLWJjY2ItODEyNjMwN2VlOGE1In19LCJleHBpcnlUaW1lIjoxNjU2NjI4MTc1ODY0LCJ0aW1lQ3JlYXRlZCI6MTY1NjYyNDU4NjE1MCwibG1ydCI6MTY1NjYyNDU4NjE0N30%3D.MNzbzZmpXnZ9Qv5ZIF2Z7l1EYZ2nL8WpaYWqySforjkCZLZWj3ggUDaEFX70yK%2FnV%2FVN%2ByJzZSOhZal4daddvrddwZcFnBWQbJbvULuOpRcAxoyaZOB5ttzFqO4CcIKHDCgWdUebCXy1IMyckRS8CLfrNuCzJ21wjpPNQiVtjYpHiADHdvSLUbCwBgyBarlnV%2B4x5%2FHI%2BizUU%2FtTocXlWGzgg3R4h5289%2Bo4kftOwWFN9hynN84IrLQtaUV2Rrm%2F50e86EoeYzDMJogIcJnKZPsUYz%2FV5OKXTM8d4%2Fx2lD15supJVJzkRgsK4pZKKsWX9Jh8Sdc%2FNFC0KaKIGUNasw%3D%3D; Path=/; Expires=Thu, 30 Jun 2022 22:29:35 GMT; HttpOnly; SameSite=Lax
note the expires time was the same as the response
r

rp

07/01/2022, 4:10 AM
Hey @TJ Biegner
Does this always happen? Even if you create a new session and then call this API?
t

TJ Biegner

07/01/2022, 2:01 PM
hey thanks for responding. no it does not happen when creating a new session its only updating the token body
so i expect the cookie to be replaced on the frontend, because it contains data im using, but because its expired already i dont think it does
please lmk if that assumption isnt right
r

rp

07/01/2022, 2:07 PM
Hey! Yea. The accessToken should be updated on the frontend.
We tried to replicate this issue, but couldn’t do it. Can you maybe share code to replicate it please?
t

TJ Biegner

07/01/2022, 2:10 PM
sure thing i shared some of my backend code what do you need?
r

rp

07/01/2022, 2:11 PM
I tried using the code you had posted and that worked fine for me
Are you available for a quick call now?
t

TJ Biegner

07/01/2022, 2:12 PM
sure thing
r

rp

07/01/2022, 2:12 PM
great! just a min
@TJ Biegner im online on the link above
hey @TJ Biegner one more quick question. Do you mind hopping on a call again please?
t

TJ Biegner

07/01/2022, 2:36 PM
sure
t

TJ Biegner

07/01/2022, 3:06 PM
Hey @rp if you have a sec i think i may have found an actual bug. I can show you. its kind of hard to explain. Its adding the axios interceptors but only on session creation. Its strange...
r

rp

07/01/2022, 3:16 PM
Hey!
Yea sure. I’ll send a link
@TJ Biegner