0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/packages/integration-tests/src/constants.ts

18 lines
639 B
TypeScript
Raw Normal View History

import { SignInIdentifier, demoAppApplicationId } from '@logto/schemas';
2022-12-12 08:15:09 -05:00
import { assertEnv } from '@silverhand/essentials';
2022-12-12 08:15:09 -05:00
export const logtoUrl = assertEnv('INTEGRATION_TESTS_LOGTO_URL');
export const discoveryUrl = `${logtoUrl}/oidc/.well-known/openid-configuration`;
export const demoAppRedirectUri = `${logtoUrl}/${demoAppApplicationId}`;
export const adminConsoleRedirectUri = `${logtoUrl}/console/callback`;
export const signUpIdentifiers = {
username: [SignInIdentifier.Username],
email: [SignInIdentifier.Email],
sms: [SignInIdentifier.Sms],
emailOrSms: [SignInIdentifier.Email, SignInIdentifier.Sms],
none: [],
};