there's seems to be an ungraceful handling of wrong access_token for golang sdk. e.g. if a frontend ...
j
there's seems to be an ungraceful handling of wrong access_token for golang sdk. e.g. if a frontend token sends to supertokens golang sdk a wrong access_token, the tp will try to call userinfo but fail, and there the sdk panics on this:
Copy code
go-app    | 2025/01/01 05:48:21 "POST http://localhost:8000/auth/signinup HTTP/1.1" from 192.168.65.1:53473 - 000 0B in 157.433875ms
go-app    | panic: interface conversion: interface {} is nil, not map[string]interface {}
how do we solve this? i'm thinking that this type should be broadened to include just
interface{}
Copy code
type TypeRawUserInfoFromProvider struct {
    FromIdTokenPayload map[string]interface{}
    FromUserInfoAPI    map[string]interface{}
}
so questions: 1. anyone using golang sdk having same issue: 2. if so, what do you think about my fix? thanks.