Class: RegistrationTokenInput
api-login/auth/dto/link-user.dto.RegistrationTokenInput
Input type for self-linking Only expects the register_token
Hierarchy
RegistrationTokenInput
Constructors
constructor
• new RegistrationTokenInput()
Properties
register_token
• register_token: string
The register token issued during as result of the oauth registration flow. Scope of the token must contain "login-register".
Must be given.
Example
"registration.token.jwt"
Defined in
gropius-login-service/backend/src/api-login/auth/dto/link-user.dto.ts:16
Methods
check
▸ Static
check(input
): RegistrationTokenInput
Checks that the given object contains a register_token string that in not empty
Parameters
Name | Type | Description |
---|---|---|
input | RegistrationTokenInput | The instance to check |
Returns
The argument unchanged
Throws
HttpException BAD_REQUEST if invalid
Defined in
gropius-login-service/backend/src/api-login/auth/dto/link-user.dto.ts:25