l
Hi, my current problem that I can't integrate SuperTokens and Centrifugo based on JWT auth. I have enabled JWT session and in one handler printed token from valid session, then I past it to https://jwt.io/ and it says that: "looks like your JWT signature is not encoding correctly using base64url (note that padding ("=") must be omitted)" and says that signature is invalid. Is is okay?
r
hey @lavrd how are you getting the JWT?
l
i am using Go and your official library, so in http handler i have following code:
Copy code
ss := session.GetSessionFromRequestContext(r.Context())
fmt.Println(ss.GetAccessToken())
r
right. So that's the access token for our session, not the JWT
to get the JWT, you need to read
session.GetAccessTokenPayload()["jwt"]
l
thanks! i will try to continue this integration