Currently client.GetAccessToken seems to generate a global (not resource-specific even if a resource is provided) access token that is also not a JWT. Because of that, it is currently not possible to use the token for https://docs.logto.io/docs/recipes/protect-your-api/
What problem did you meet?
Currently
client.GetAccessToken
seems to generate a global (not resource-specific even if a resource is provided) access token that is also not a JWT. Because of that, it is currently not possible to use the token for https://docs.logto.io/docs/recipes/protect-your-api/Also I am not 100% certain but I believe the correct resource isn't even passed when fetching the token here: https://github.com/logto-io/go/blob/7b2a0e1fd27c2f7ca04d6589b7812f488da0f55b/client/client.go#L109-L114
Describe what you'd like Logto to have
Calling
client.GetAccessToken
should return a JWT, resource-specific access token string as it does in the JS SDK: https://docs.logto.io/docs/recipes/integrate-logto/vanilla-js/#backend-api-authorization