1
0
Fork 0
mirror of synced 2024-10-01 17:58:02 +13:00

chore: remove 'universal' references

This commit is contained in:
loks0n 2024-01-12 17:30:36 +00:00
parent 02b83bf26e
commit c8ce360ce9
2 changed files with 2 additions and 2 deletions

View file

@ -1559,7 +1559,7 @@ App::post('/v1/users/:userId/tokens')
->label('sdk.response.model', Response::MODEL_TOKEN)
->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
->param('length', 6, new Range(4, 128), 'Token length in chars.', true)
->param('expire', Auth::TOKEN_EXPIRATION_UNIVERSAL, new Range(60, Auth::TOKEN_EXPIRATION_LOGIN_LONG), 'Token expiration in seconds.', true)
->param('expire', Auth::TOKEN_EXPIRATION_GENERIC, new Range(60, Auth::TOKEN_EXPIRATION_LOGIN_LONG), 'Token expiration in seconds.', true)
->inject('request')
->inject('response')
->inject('project')

View file

@ -74,7 +74,7 @@ class Auth
public const TOKEN_EXPIRATION_RECOVERY = 3600; /* 1 hour */
public const TOKEN_EXPIRATION_CONFIRM = 3600 * 1; /* 1 hour */
public const TOKEN_EXPIRATION_PHONE = 60 * 15; /* 15 minutes */
public const TOKEN_EXPIRATION_UNIVERSAL = 60 * 15; /* 15 minutes */
public const TOKEN_EXPIRATION_GENERIC = 60 * 15; /* 15 minutes */
/**
* Token Lengths.