0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: add comment

This commit is contained in:
Gao Sun 2023-03-03 14:30:00 +08:00
parent 32f21083f0
commit 5a337520cb
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -5,6 +5,14 @@ import { sql } from 'slonik';
import { log } from '../../../utils.js';
/**
* Append Redirect URIs for the default tenant callback in cloud Admin Console.
* It reads the same env variables as core to construct the cloud `UrlSet`.
*
* E.g., by default, it will appends `http://localhost:3003/default/callback` to the Redirect URIs.
*
* For why it is necessary, see the redirect lifecycle of cloud Admin Console.
*/
export const appendAdminConsoleRedirectUris = async (pool: CommonQueryMethods) => {
const redirectUris = new GlobalValues().cloudUrlSet
.deduplicated()