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

Val

12/19/2022, 10:00 AM
Hi, hope you all are fine ! I got
Copy code
{
message: "try refresh token"
}
on the
/auth/dashboard
n

nkshah2

12/19/2022, 10:08 AM
Hi @Val Can I see the backend config you use when calling SuperTokens.init?
Whats the value of
stConf.APIDomain
and
&apiBasePath
?
v

Val

12/19/2022, 12:29 PM
APIDomain is the host of the API
localhost:4000
apiBasePath = "/st"
and I try to /st/dashboard
but is working just after 1h I get this error
If I try with private navigation it's working
n

nkshah2

12/19/2022, 12:32 PM
@sattvikc Might be able to help here
v

Val

12/19/2022, 7:22 PM
If I clean my cookie it's work normally*
n

nkshah2

12/20/2022, 4:22 AM
Hmm strange, give @sattvikc some time he'll reply as soon as he can
s

sattvikc

12/20/2022, 4:27 AM
hey @Val , I tried reproducing the issue, but didn't happen. can you help us with little more details? are there any protection added to dashboard routes? also backend debug logs?
v

Val

12/20/2022, 7:45 AM
Ok I just implement with settings I sent and add the suppertokens middleware to chi router (with go) It's working fine I can't access to the supertokens dashboard and signin with my client application like a charm. But after 1h (more or less) I get
Copy code
{
  message: "try refresh token"
}
And I can't access to the dashboard and cannot signin with frontend with the same err
I do not have logs just nothing happen I thing it's in the supertokens middleware
@sattvikc
s

sattvikc

12/20/2022, 7:46 AM
do u access the dashboard via /st/dashboard ?
v

Val

12/20/2022, 7:47 AM
yes and it's working normally
but after the hour not
ok
s

sattvikc

12/20/2022, 7:48 AM
can I take a look at it over a call ?
this is little strange because we don't use cookies for the dashboard
v

Val

12/20/2022, 7:49 AM
if I remove the cookie it's working
I just try
and it's work now
umh not now but yes it will be nice
s

sattvikc

12/20/2022, 7:50 AM
okay, let me know when it would be comfortable
v

Val

12/20/2022, 7:50 AM
ok weird because I don't see this cookie now (it not came back) but ok when I get it I'll send it to you
s

sattvikc

12/20/2022, 7:51 AM
yea sure
v

Val

12/20/2022, 10:29 AM
@sattvikc this cookie
s

sattvikc

12/20/2022, 10:30 AM
hey, can we debug over a call?
v

Val

12/20/2022, 10:31 AM
Just for add context when I login with frontend after cleanup the cookie
I got 2 news cookies
s

sattvikc

12/20/2022, 10:31 AM
cookies are fine, thing is that it shouldn't interfere with dashboard
v

Val

12/20/2022, 10:31 AM
cannot right now 😦
do you want access to the domain? I send you in private if you want
s

sattvikc

12/20/2022, 10:32 AM
sure, that can help
v

Val

12/20/2022, 10:33 AM
sent 🙂
s

sattvikc

12/20/2022, 11:57 AM
to wrap up on the Dashboard cookie issue: while using a global middleware it's best to ensure it skips execution on the routes that start with APIBasePath, especially if you are handling session stuff in that.
@rp the change password issue discussion has gone into private DM. plz update once the fix is released.
r

rp

12/26/2022, 8:40 AM
this has been fixed in the latest version of the golang SDK (>= 0.9.12)
v

Val

12/26/2022, 12:20 PM
@rp cool thank I upgrade it