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
* The subject token(refresh token in this case) to exchange for an access token for a connection.
281
+
* The subject token to exchange for an access token for a connection.
282
282
*/
283
283
subject_token: string;
284
284
/**
285
285
* The target social provider connection (e.g., "google-oauth2").
286
286
*/
287
287
connection: string;
288
+
/**
289
+
* An optional subject token type parameter to pass to the authorization server. If not provided, it defaults to `urn:ietf:params:oauth:token-type:refresh_token`.
@@ -591,12 +616,13 @@ export class OAuth extends BaseAuthAPI {
591
616
}
592
617
593
618
/**
594
-
* Exchanges a subject token (refresh token in this case) for an access token for the connection.
619
+
* Exchanges a subject token for an access token for the connection.
595
620
*
596
621
* The request body includes:
597
622
* - client_id (and client_secret/client_assertion via addClientAuthentication)
598
623
* - grant_type set to `urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token`
599
-
* - subject_token (refresh token) and fixed subject_token_type for refresh tokens (`urn:ietf:params:oauth:token-type:refresh_token`)
624
+
* - subject_token: the token to exchange
625
+
* - subject_token_type: the type of token being exchanged. Defaults to refresh tokens (`urn:ietf:params:oauth:token-type:refresh_token`).
600
626
* - requested_token_type (`http://auth0.com/oauth/token-type/federated-connection-access-token`) indicating that a federated connection access token is desired
601
627
* - connection name and an optional `login_hint` if provided
602
628
*
@@ -611,9 +637,9 @@ export class OAuth extends BaseAuthAPI {
0 commit comments