Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify Client returning HTTP 404 #163

Open
marvinraydalida opened this issue Apr 27, 2023 · 2 comments
Open

Spotify Client returning HTTP 404 #163

marvinraydalida opened this issue Apr 27, 2023 · 2 comments

Comments

@marvinraydalida
Copy link

Im trying to get my accessToken using the spotify client but I got HTTP 404 - when printing it:

ElevatedButton(
   child: Text('Login to spotify'),
   onPressed: () async{
     OAuth2Client spotifyClient = SpotifyOAuth2Client(redirectUri: 'api://callback', customUriScheme: 'api');
     AccessTokenResponse tokenResponse = await spotifyClient.getTokenWithAuthCodeFlow(
       clientId: '946f9d597887478487a38e3dd16f0c19',
       scopes: ['user-read-email', 'user-read-private', 'user-top-read'],
     );

     print('access token: $tokenResponse.accessToken');
   },
 )
@harunkurtdev
Copy link

did you try anything ?

@harunkurtdev
Copy link

I developed a spotify auth system of my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants