Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

README: add useGoogleLogin overrideScope prop #338

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

Open
NeodymiumFerBore wants to merge 1 commit into MomenSherif:master
base: master
Choose a base branch
Loading
from NeodymiumFerBore:patch-1

Conversation

@NeodymiumFerBore
Copy link

@NeodymiumFerBore NeodymiumFerBore commented Mar 18, 2024
edited
Loading

Was wondering why my app was requesting user info by default.

Both implicit and code flow interfaces have this prop. It is optional, so defaults to false.

useGoogleLogin set requested scopes regarding the given scope and overrideScope props. If overrideScope is false, then email, profile and openid are included in requested scopes.

const client = window?.google?.accounts?.oauth2[clientMethod]({
client_id: clientId,
scope: overrideScope ? scope : `openid profile email ${scope}`,
callback: (response: TokenResponse | CodeResponse) => {

This PR adds overrideScope in the useGoogleLogin table in README.

Copy link

changeset-bot bot commented Mar 18, 2024

⚠️ No Changeset found

Latest commit: c9915c6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Mar 18, 2024
edited
Loading

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
react-oauth ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2024 0:33am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /