I didn’t pass NULL. I don’t do a manual INSERT. Everything is handled by the framework. I just need to know how to grab the login name via scope.
I have another login handler for Spotify and it works perfectly fine because I have the right scope. I can’t find anywhere in the docs a scope for the login name.
So I don’t know what the framework you are doing is doing.
The username for a given token can be obtained from the oAuth validation endpoint or by calling the users endpoint.
Seems the library you are using is doing neither of those or it’s calling kraken (which is long dead at this point) and if it is calling kraken just glossing over the error