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
enhance(docs): reorg google auth guide (web) #25969
base: master
Are you sure you want to change the base?
Conversation
charislam
commented
May 9, 2024
- rearrange the page
- revalidate and revise the web instructions
The latest updates on your projects. Learn more about Vercel for Git ↗︎
5 Ignored Deployments
|
No changes detected in Branching Preview Branches by Supabase. |
throw new Error('no ID token present!') | ||
} | ||
} catch (error: any) { | ||
if (error.code === statusCodes.SIGN_IN_CANCELLED) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[misspell] reported by reviewdog 🐶
"CANCELLED" is a misspelling of "CANCELED"
} | ||
} catch (error: any) { | ||
if (error.code === statusCodes.SIGN_IN_CANCELLED) { | ||
// user cancelled the login flow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[misspell] reported by reviewdog 🐶
"cancelled" is a misspelling of "canceled"
|
||
You can get both versions by using the in-built `crypto` library: | ||
|
||
```js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrote this to work browser-side since that seems to fit more with the example (script tags, functions in browser global scope). Would appreciate a second set of 👀 !