mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
refactor(core): add comments
This commit is contained in:
parent
c532a3fe38
commit
6e2b7c0975
1 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,10 @@ const grantTypeToExchangeByType: Record<GrantType, token.ExchangeByType> = {
|
||||||
[GrantType.AuthorizationCode]: token.ExchangeByType.AuthorizationCode,
|
[GrantType.AuthorizationCode]: token.ExchangeByType.AuthorizationCode,
|
||||||
[GrantType.RefreshToken]: token.ExchangeByType.RefreshToken,
|
[GrantType.RefreshToken]: token.ExchangeByType.RefreshToken,
|
||||||
[GrantType.ClientCredentials]: token.ExchangeByType.ClientCredentials,
|
[GrantType.ClientCredentials]: token.ExchangeByType.ClientCredentials,
|
||||||
|
/**
|
||||||
|
* The organization token grant also uses refresh token to exchange for access token.
|
||||||
|
* See [RFC 0001](https://github.com/logto-io/rfcs) for more details.
|
||||||
|
*/
|
||||||
[GrantType.OrganizationToken]: token.ExchangeByType.RefreshToken,
|
[GrantType.OrganizationToken]: token.ExchangeByType.RefreshToken,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue