injected service use to handle the onetime token related operations
authentication secrets
token expire time configuration
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
{
data: {
state: string;
},
status: number;
}
This handler will create google login by applying the following steps in sequence:
Get fp, redirectUrl, typeId, userAgent from query
Get ip and host from request info
Generate onetime token (onetimeTokenService.generateOnetimeToken)
Return payload and redirectUrl
Generated using TypeDoc
Create google login handler