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

prachi

03/03/2022, 1:35 PM
I have supertokens-frontend running on localhost:3000 and different project for backend on localhost:3002 from UI when I am trying to login to google, I get "recipeImplementation.js:163 GET http://localhost:3002/auth/authorisationurl?thirdPartyId=google 404 (Not Found)" but localhost:3002 is up
r

rp

03/03/2022, 1:37 PM
Hey! Can I see your backend config and frontend config?
p

prachi

03/03/2022, 1:37 PM
quick call?
r

rp

03/03/2022, 1:38 PM
alright
meet.google.com/ehq-hxxu-ono
p

prachi

03/04/2022, 9:36 AM
@User quick call for jwt and hasura integration?
r

rp

03/04/2022, 9:36 AM
I won't be able to get on a call now
If you could paste the code that you have written, it would be great
p

prachi

03/04/2022, 9:36 AM
sure
r

rp

03/04/2022, 9:41 AM
this seems fine. Do the console logs get printed?
p

prachi

03/04/2022, 9:46 AM
yes in that input accessTokenPayload is empty
and at the frontend sessionInfo is empty too
r

rp

03/04/2022, 9:53 AM
Can you call the API login API via postman and copy / paste the
sAccessToken
returned from the set-cookie header?
p

prachi

03/04/2022, 10:12 AM
okay
In response I get { "status": "OK", "user": { "email": "prachi@suggaa.com", "id": "ed8ffbc4-706e-443b-84b8-366953061fbb", "timeJoined": 1646126690320 } }
r

rp

03/04/2022, 10:29 AM
Can you show me the response headers from postman and in there, you will see "set-cookie" with "sAccessToken"
I want to see the value of that
As you can see above, it contains the JWT key in the access token. How are trying to fetch it on the frontend?
p

prachi

03/04/2022, 10:41 AM
How to access this at the backend , if I want to print?
r

rp

03/04/2022, 10:49 AM
p

prachi

03/04/2022, 10:50 AM
this i have done.
backend is fine.
r

rp

03/04/2022, 10:51 AM
There is no key called
sessionInfo
on the frontend from the userContext. There is
accessTokenPayload
. So it should be:
Copy code
let {userId, accessTokenPayload} = useSessionContext();

let jwt = accessTokenPayload.jwt;
As the docs say
Is there anywhere in the docs which says
sessionInfo
?
p

prachi

03/04/2022, 10:52 AM
yes. accessTokenPayload only.
thank you
r

rp

03/04/2022, 10:52 AM
Does it work now?
p

prachi

03/04/2022, 10:53 AM
yes
74 Views