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

What if you need a Access Token back? #38

Open
ccmsd18 opened this issue Feb 16, 2023 · 1 comment
Open

What if you need a Access Token back? #38

ccmsd18 opened this issue Feb 16, 2023 · 1 comment

Comments

@ccmsd18
Copy link

ccmsd18 commented Feb 16, 2023

`
//this what i am trying below, but no code returned. any idea where would it return the code?

@State private var startingWebAuthenticationSession = false

var body: some View {
    Button(action: {
        self.startingWebAuthenticationSession = true
    }) {
        Text("Login")
    }
    .webAuthenticationSession(isPresented: $startingWebAuthenticationSession) {
        WebAuthenticationSession(
            url: URL(string: "https://accounts.spotify.com/authorize")!,
            callbackURLScheme: "spotify"
        ) { callbackURL, error in
            print(callbackURL, error)
        }
        .prefersEphemeralWebBrowserSession(false)
    }
}

`

@ian0cordova
Copy link

I'm also curious about how I could go about receiving a JWT sent by the authentication provider. Is this possible with BetterSafariView?

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