-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add ability to use server callback url for start of oauth2 flow #715
Conversation
@@ -44,7 +44,10 @@ export class OAuthExtension extends Extension.Internal<'oauth2'> { | |||
} | |||
|
|||
if (successResult?.oauthAuthoriationURI) { | |||
window.location.href = successResult.oauthAuthoriationURI; | |||
window.location.href = successResult.useMagicServerCallback | |||
? // @ts-ignore - this.sdk.endpoint is marked protected but we need to access it. |
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.
how about adding a public getter function for endpoint
so we don't have to do this?
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.
That's a good idea
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.
Yeah, I was thinking the same thing since this is protected. Didn't want to muddy up this PR so perhaps we can make a separate PR for this?
π¦ Pull Request
[Provide a general summary of the pull request here.]
β Fixed Issues
π¨ Test instructions
[Describe any additional context required to test the PR/feature/bug fix.]
Please only add one label:
patch
: Bug Fix?minor
: New Feature?major
: Breaking Change?skip-release
: It's unnecessary to publish this change.π¦ Published PR as canary version:
Canary Versions
β¨ Test out this PR locally via: