Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

918 add api token verification #128

Merged
merged 6 commits into from
Apr 22, 2022
Merged

Conversation

slevertbiot
Copy link

No description provided.

@slevertbiot
Copy link
Author

I'll merge in master after Marc has merged his in. This should remove the web changes showing up here.

}
logger.debug('Authenticating the id token: ' + idToken);
const authClient: OAuth2Client = getAuthClient();
const validatedToken: LoginTicket = await authClient.verifyIdToken({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this throw a 401?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will throw an Apollo error with the message like:

Screen Shot 2022-04-22 at 7 55 39 AM

@slevertbiot slevertbiot merged commit 615b7f8 into master Apr 22, 2022
@slevertbiot slevertbiot deleted the 918-add-api-token-verification branch August 4, 2022 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants