p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.14k stars 276 forks source link

How to log with a token #343

Open camillegallet opened 4 years ago

camillegallet commented 4 years ago

I'm doing that

appDelegate.oauth2!.afterAuthorizeOrFail = { authParameters, error in
        let formatter = DateFormatter()
        formatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
        let myString = formatter.string(from: appDelegate.oauth2!.accessTokenExpiry!)
        print("t \(appDelegate.oauth2!.accessToken)")
        print("td \(myString)")
        //login me here with oauth2.accessToken

}

In this block I want to log into my website with an url like that : http://my-website.com/authme.php?token=oauth2!.accessToken!

I've try webview.load and no success