@superfan-app/spotify-auth 0.1.40 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -399,8 +399,9 @@ final class SpotifyAuthAuth: NSObject, SPTSessionManagerDelegate, SpotifyOAuthVi
399
399
  throw SpotifyAuthError.sessionError("Session manager not initialized")
400
400
  }
401
401
  let scopes = try self.scopes
402
+ let sptScopes = SPTScope(rawValue: scopes.joined(separator: " "))
402
403
  isAuthenticating = true
403
- sessionManager.initiateSession(with: scopes, options: .default, campaign: nil)
404
+ sessionManager.initiateSession(with: sptScopes, options: .default, campaign: nil)
404
405
  } catch {
405
406
  isAuthenticating = false
406
407
  handleError(error, context: "authentication_retry")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superfan-app/spotify-auth",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "Spotify OAuth module for Expo",
5
5
  "main": "src/index.tsx",
6
6
  "types": "build/index.d.ts",