File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,12 @@ In a browser environment
7272
7373``` ts 
7474let  config! :  client .Configuration 
75- let  getCodeVerifierFromSession ! :  ( ... args :   any )  =>  string 
75+ let  expectedNonce ! :  string 
7676let  getCurrentUrl! :  (... args :  any ) =>  URL 
7777
7878let  tokens =  await  client .authorizationCodeGrant (
7979  config ,
8080  new  URL (location .href ),
81-   {
82-     pkceCodeVerifier: getCodeVerifierFromSession (),
83-   },
81+   expectedNonce ,
8482)
8583``` 
Original file line number Diff line number Diff line change @@ -59,4 +59,4 @@ client.useIdTokenResponseType(config)
5959
6060## See  
6161
62- [ OpenID Connect 1.0 Hybrid  Flow] ( https://openid.net/specs/openid-connect-core-1_0-errata2.html#HybridFlowAuth  ) 
62+ [ OpenID Connect 1.0 Implicit  Flow] ( https://openid.net/specs/openid-connect-core-1_0-errata2.html#ImplicitFlowAuth  ) 
Original file line number Diff line number Diff line change @@ -2829,15 +2829,13 @@ export interface ImplicitAuthenticationResponseChecks
28292829 * 
28302830 * ```ts 
28312831 * let config!: client.Configuration 
2832-  * let getCodeVerifierFromSession!: (...args: any) =>  string 
2832+  * let expectedNonce!:  string 
28332833 * let getCurrentUrl!: (...args: any) => URL 
28342834 * 
28352835 * let tokens = await client.authorizationCodeGrant( 
28362836 *   config, 
28372837 *   new URL(location.href), 
2838-  *   { 
2839-  *     pkceCodeVerifier: getCodeVerifierFromSession(), 
2840-  *   }, 
2838+  *   expectedNonce, 
28412839 * ) 
28422840 * ``` 
28432841 * 
@@ -3077,7 +3075,7 @@ export function useCodeIdTokenResponseType(config: Configuration) {
30773075 * 
30783076 * @group  Advanced Configuration 
30793077 * 
3080-  * @see  {@link https://openid.net/specs/openid-connect-core-1_0-errata2.html#HybridFlowAuth  OpenID Connect 1.0 Hybrid  Flow } 
3078+  * @see  {@link https://openid.net/specs/openid-connect-core-1_0-errata2.html#ImplicitFlowAuth  OpenID Connect 1.0 Implicit  Flow } 
30813079 */ 
30823080export  function  useIdTokenResponseType ( config : Configuration )  { 
30833081  checkConfig ( config ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments