Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Initial version #4

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
wants to merge 3 commits into
base: initial-version
Choose a base branch
from

Conversation

Plazmius
Copy link

@Plazmius Plazmius commented Sep 19, 2021

@gr2m Sorry, left a comment from the wrong account. this PR should fix tests and remove the bug

fix conditionals to stop test from crashing
fix session initialization from response
@gr2m gr2m added the bug Something isn't working as documented, or is being fixed label Sep 30, 2021
@@ -55,7 +55,7 @@ export async function auth<
} as GetWebFlowAuthorizationUrlOptions<Client>;

if (options.clientType === "oauth-app") {
options.scopes = command.scopes ?? this.defaultScopes;
options.scopes = command.scopes ? this.defaultScopes : command.scopes;
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be the other way around? I think we could also do

Suggested change
options.scopes = command.scopes ? this.defaultScopes : command.scopes;
options.scopes = command.scopes || this.defaultScopes

@gr2m
Copy link
Contributor

gr2m commented Sep 30, 2021

I'm confused about the linting error, I cannot reproduce it locally 🤷🏼

I do however see the test/standalone.test.ts test failing?

@baoshan
Copy link

baoshan commented Jun 13, 2022

This PR could be closed because of #8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as documented, or is being fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants