Open dongminyoon opened 3 years ago
same issue guys,any solution? @dongminyoon
@meteochu
You can still do SSO although it's deprecated if you include the url scheme twitterkit-APP_ID
in your Info.plist
This is obviously a hack but still works.
@ekurutepe
what is APP_ID
?
@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()
}
}
}
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...?