rp_st
04/02/2023, 4:30 PMsessionContainer := session.GetSessionFromRequestContext(c.Request.Context())
if sessionContainer == nil {
c.JSON(500, "no session found")
return
}
accessToken := sessionContainer.GetAccessToken()
rp_st
04/02/2023, 4:31 PMsessionContainer.GetAccessToken()
is the supertokens' access token which is used to query your APIs. This access token is not the same as the github access token.
SuperTokens doesn't yet store the github access token, so you need to save that yourself if you need to.rp_st
04/03/2023, 4:01 PM