-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
`
//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)
}
}
`
ian0cordovaBrahmah
Metadata
Metadata
Assignees
Labels
No labels