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

fix: Join "scope" on google auth #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

miyanokomiya
Copy link

  • "RedirectOptions" declares it as "string[]"
  • It's same as "src/providers/github/redirect.ts"

I got this error when I use multiple scope items.

OAuth 2 parameters can only have a single value: scope

@subhendukundu
Copy link
Owner

Can you please fix the conflicts? I will merge the PR.

- "RedirectOptions" declares it as "string[]"
- It's same as "src/providers/github/redirect.ts"
@miyanokomiya
Copy link
Author

@subhendukundu Sorry for the late response, I rebuilt it. Thanks!

@@ -3,7 +3,7 @@ import { ConfigError } from "../../utils/errors";
export default async function redirect({ options, }) {
const { clientId, redirectUrl, // Deprecated, use redirectTo instead
redirectTo, // Use this instead of redirectUrl
scope = "openid email profile", responseType = "code", state = "pass-through value", accessType = "online", } = options;
scope = ["openid", "email", "profile"], responseType = "code", state = "pass-through value", accessType = "online", } = options;
Copy link
Owner

Choose a reason for hiding this comment

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

If we change this, we would need to change the scope type string to array as well. Also might create a different type then other providers?

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