mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #707] url scheme no works,debug out #459
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#459
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oshju on GitHub (May 17, 2023).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/707
Description:
same as title ,add my code
`import SwiftUI
import Alamofire
import OAuthSwift
import SafariServices
class OAuthHandler: NSObject, OAuthSwiftURLHandlerType {
weak var viewController: UIViewController?
}
class ViewModel: ObservableObject {
@Published var accessToken: String = ""
}
struct ContentView: View {
@StateObject var viewModel = ViewModel()
var body: some View {
VStack {
Text("Access token: (viewModel.accessToken)")
Button("Login") {
viewModel.login()
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
// Resto del código de ContentView...
`
OAuth Provider? (Twitter, Github, ..):
Bungie
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.4 (Swift 5.2)
11.x (Swift 5.1)
[
x]10.x (Swift 5.0)other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (May 17, 2023):
let oauthswift-> keep a ref on it (as class attribute or something else)@oshju commented on GitHub (May 18, 2023):
whern debug my code in login funtion,debug mode drops when authorize my application,drops whithout any error message from server or code,my scheme url is com.exmaple.ui,Thanks