-
Notifications
You must be signed in to change notification settings - Fork 388
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
I want to use Swifter.authorizeSSO(succees: _, failure: _)
but the authentication page does not appear on the app. just appear Home
#346
Comments
same issue guys,any solution? |
You can still do SSO although it's deprecated if you include the url scheme This is obviously a hack but still works. |
@ekurutepe |
@zunda-pixel Your twitter app ID |
thanks. but it doesn't work for me. import SwiftUI
import Swifter
struct ContentView: View {
let consumerKey = "fake"
let consumerSecret = "fake"
func getOauthToken() {
let swifter = Swifter(consumerKey: consumerKey, consumerSecret: consumerSecret)
let swifterFailureHandler: Swifter.FailureHandler = { error in
print(error)
}
let swifterSuccessHandler: Swifter.SSOTokenSuccessHandler = { json in
print(json)
}
swifter.authorizeSSO(success: swifterSuccessHandler, failure: swifterFailureHandler)
}
var body: some View {
Button("Login with Twitter") {
getOauthToken()
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not appear authentication page just appear Twitter Home
and appear log
You should call login api before calling any im related api
like thieWhat can I do...?
The text was updated successfully, but these errors were encountered: