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
Custom hosted signin widget in OIDC mode for SPA.
signin.authClient.handleLoginRedirect(res.tokens) not avialable.
Any clear documetnation on getting interaction_code on redirectURI and then using /token to fetch tokens?
Reproduction Steps
Custom hosted signin widget in OIDC mode for SPA.
signin.authClient.handleLoginRedirect(res.tokens) not avialable.
Any clear documetnation on getting interaction_code on redirectURI and then using /token to fetch tokens?
SDK Versions
7.13
Additional Information
No response
The text was updated successfully, but these errors were encountered:
oktaSignIn.showSignIn({// Assumes there is an empty element on the page with an id of ‘osw-container’el: ‘#osw-container’,}).then(response=>{oktaSignIn.authClient.handleLoginRedirect(res.tokens);}).catch(function(error){// This function is invoked with errors the widget cannot recover from:// Known errors: CONFIG_ERROR, UNSUPPORTED_BROWSER_ERRORconsole.log('login error',error);});
The quotes for around the #osw-container are decorative quotes - not single quote literals.
oktaSignIn.authClient.handleLoginRedirect(res.tokens) errors out as
Property 'handleLoginRedirect' does not exist on type 'WidgetOktaAuthInterface'.ts(2339)
You can workaround this by using oktaAuth.handleLoginRedirect instead.
oktaSignIn.authClient.handleLoginRedirect(res.tokens) errors out as res does not exist; in the sample code it was named response
oktaAuth.handleLoginRedirect(response) has a typescript error as:
Argument of type 'RenderResult' is not assignable to parameter of type 'Tokens | undefined'.
Type 'RenderResultSuccess' is not assignable to type 'Tokens | undefined'.ts(2345)
You can workaround this by casting the response and the tokens property.
Describe the bug
Custom hosted signin widget in OIDC mode for SPA.
signin.authClient.handleLoginRedirect(res.tokens) not avialable.
Any clear documetnation on getting interaction_code on redirectURI and then using /token to fetch tokens?
Reproduction Steps
Custom hosted signin widget in OIDC mode for SPA.
signin.authClient.handleLoginRedirect(res.tokens) not avialable.
Any clear documetnation on getting interaction_code on redirectURI and then using /token to fetch tokens?
SDK Versions
7.13
Additional Information
No response
The text was updated successfully, but these errors were encountered: