in app/login/OAuthService.ts [140:157]
async function validateAndDecode(
oAuthContext: OAuthContextData,
response: OAuthResponse
) {
if (response.token) {
const decoded = await verifyJwt(
oAuthContext,
response.token,
response.refreshToken
);
/* Make a request to pluto-user-beacon (if available) to ensure that the user exists in Vidispine.
* The function should wait for up to five seconds for a response from pluto-user-beacon. */
await delayedRequest("/userbeacon/register-login", 5000, response.token);
return decoded;
} else {
throw "Could not validate aas no token was provided";
}
}