Closed atmike closed 1 year ago
OK I found out that the it is not possible to get a refresh token in the implicit flow
But what a about the code flow? How to get Refresh token without the pkceCodeVerifier?
@moberwasserlechner Can tell me if there is a way to get to pkceCodeVerifier value? without this value I can do anything to refresh the token in a silent way. Please give me a short answer.
I have given up to use the plugin in the same window :(
Description
I want to use this Library with windowTarget: "_self". At the Moment I can login and logout with Azure B2C and Azure AD. I'm doing this by using responseType: "token" to get the Token via URL.
My Problem is, that I'm not able to get a refresh token from the AD's. The redirect URL only contains the access_token but no refresh_token. I already tried to us the responseType: Code and than try to use the Code to get the access and refresh token. But here I do not have the code_verifier that is generated with in the Library to verify the code =>
let pkceCodeVerifier = generateRandom(withLength: 64)
Can any one tell how I can manage this?
Capacitor version:
In my test app I'm running without Capacitor
Library version:
4.0.0
OAuth Provider:
Azure B2C & Azure AD
Your Plugin Configuration
Affected Platform(s):
add the moment I'm testing only in Web