You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am having some issues with using a login request with SpotifyAPI-NET.
This is my code
var (verifier, challenge) = PKCEUtil.GenerateCodes(120);
var loginRequest = new LoginRequest(
new Uri("urlschemetest://testurl"),
"CLIENT_ID", LoginRequest.ResponseType.Code)
{
CodeChallengeMethod = "S256",
CodeChallenge = challenge,
Scope = new[] { Scopes.PlaylistReadPrivate, Scopes.PlaylistReadCollaborative, Scopes.UserLibraryRead } //change these to add more permissions
};
var uri = loginRequest.ToUri();
await Launcher.OpenAsync(uri);
and it goes to a page with "INVALID_CLIENT: Invalid redirect URI" written on it
In my MainActivity.cs I have this to change my app url to "urlschemetest://testurl"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am having some issues with using a login request with SpotifyAPI-NET.
This is my code
and it goes to a page with "INVALID_CLIENT: Invalid redirect URI" written on it
In my MainActivity.cs I have this to change my app url to "urlschemetest://testurl"
Does anyone know how to fix these issues?
Beta Was this translation helpful? Give feedback.
All reactions