injected API service use to handle the user related operations
injected service use to handle OAuth related operations
Token configuration.
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
{
data: {
payload: any;
redirectUrl: string;
},
status: 200
}
This handler will create google callback by applying the following steps in sequence:
Get fp, redirectUrl, typeId and userAgent from onetime token service (onetimeTokenService.checkTokenValidate)
Get ip and host from request info
Get payload from request body
Get email from payload
Get matching users from user service (userAPI.getUsers)
Create user if user is undefined (userAPI.createUser)
Generate access token (crypto.generateUserAccessToken)
Generate onetime token (onetimeTokenService.generateOnetimeToken)
Return payload and redirectUrl
500 NBError Internal Server Error
Generated using TypeDoc
Create google callback handler