Skip to main content

Class: RegistrationTokenInput

api-login/dto/link-user.dto.RegistrationTokenInput

Input type for self-linking Only expects the registration_token

Hierarchy​

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​

login-service/src/api-login/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​

NameTypeDescription
inputRegistrationTokenInputThe instance to check

Returns​

RegistrationTokenInput

The argument unchanged

Throws

HttpException BAD_REQUEST if invalid

Defined in​

login-service/src/api-login/dto/link-user.dto.ts:25