Garrett
12/08/2022, 4:17 PMuseSessionContext
hook from the auth-react/recipe
to not change/cause a rerender when the accessToken expires?rp
12/08/2022, 4:18 PMGarrett
12/08/2022, 4:18 PMrp
12/08/2022, 4:18 PMGarrett
12/08/2022, 4:19 PMjwt
from the accessTokenPayload
as the Authorization Bearer token to make requests to our own backend.rp
12/08/2022, 4:25 PMuseSessionContext
, then it won't cause an auto refreshGarrett
12/08/2022, 4:27 PMrp
12/08/2022, 4:27 PMGarrett
12/08/2022, 4:30 PMporcellus
12/08/2022, 4:37 PMuseSessionContext
isn't supposed to be doing updates like that. If you have to have a fresh value (like in your case) you should use getAccessTokenPayloadSecurely
directly before the call.SessionAuth
and SupertokensAuthWrapper
componentsGarrett
12/08/2022, 4:43 PMhasura
so I don't think we're protecting the underlying express routes in the way you would expect. I do think that's probably why we're not getting some of the baked in features you're referring to though.porcellus
12/08/2022, 4:46 PMapiDomain
passed to the init function in appInfo
. If a request to apiDomain
is rejected with a 401 it should trigger a refresh.rp
12/08/2022, 4:49 PMGarrett
12/08/2022, 5:41 PMrp
12/08/2022, 5:50 PMGarrett
12/08/2022, 5:59 PMrp
12/08/2022, 5:59 PMGarrett
12/08/2022, 7:57 PMrp
12/09/2022, 3:40 AM