You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
I'm having an issue trying to log in with OAuth 2.0 in physical device. It works when native twitter app not installed on device. But if twitter app is installed on device it stucks after entering username and password like this.
i tried TwitterAPIKit-iOS-sample and same thing happened.
The text was updated successfully, but these errors were encountered:
I found way to fix this
OAuth2CodeFlowPKCEViewController.swift line 39
let state = "<state_here>" // Rewrite your state
to
//random string
let state = String(
String(repeating: "a", count: 128).compactMap { _ in
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".randomElement()
}
)
then it work!!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I'm having an issue trying to log in with OAuth 2.0 in physical device. It works when native twitter app not installed on device. But if twitter app is installed on device it stucks after entering username and password like this.
i tried TwitterAPIKit-iOS-sample and same thing happened.
The text was updated successfully, but these errors were encountered: