Skip to content

What if you need a Access Token back? #38

@ccmsd18

Description

@ccmsd18

`
//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)
    }
}

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions