Skip to content

Instantly share code, notes, and snippets.

@pepicrft
Created September 23, 2016 14:41
Show Gist options
  • Save pepicrft/421d9bea3a8c797d083bb1fa99e3be08 to your computer and use it in GitHub Desktop.
Save pepicrft/421d9bea3a8c797d083bb1fa99e3be08 to your computer and use it in GitHub Desktop.
let provider = SoundCloudProvider(clientId: "xxx", clientSecret: "yyy", redirectUri: "test://test")
let webview = OAuth2WebView(frame: self.view.frame, provider: provider) { (session, error)
if let session = session {
print("User access token: \(session.accessToken)")
} else if let error = error {
print("Something went wrong during the authentication: \(error)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment