-
Notifications
You must be signed in to change notification settings - Fork 462
Open
Description
Issue
While trying to authenticate with Spotify, the authorize method is not resolving.
The app linking seems to be working, as I can open the app via
Linking.openURL('appbundle://oauth?ping=1'); and this works fine in xcode.
Environment
// versions
"react-native": "0.81.0",
"react-native-app-auth": "^8.0.3",- Spotify oAuth
- IOS
- Not using EXPO
Code
It logs [DEBUG] Preparing authorization
It opens the browser, I authorize, the browser closes... but it does not resolve the promise.
The redirect URI is correct. As I was able to test linking above with Linking.openURL('appbundle://oauth?ping=1');
export async function loginSpotify() {
console.log('[DEBUG] Preparing authorization')
const res: AuthorizeResult = await authorize(pkceConfig);
console.log('[DEBUG] Authorized:', res);
return {
accessToken: res.accessToken,
refreshToken: res.refreshToken,
accessTokenExpirationDate: res.accessTokenExpirationDate,
};
}Metadata
Metadata
Assignees
Labels
No labels