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(sdk): fix #getAuthorizationData() default URL missing a state parameter #6

Merged

Conversation

aloisklink
Copy link
Contributor

Draft PR: This PR is stacked on top of:

Please change this PR to target main once #5 has been merged.

getAuthorizationData() was returning a URL without state when state was undefined. This was then causing the MermaidChart API to not return a state, causing an error in #handleAuthorizationResponse():

if (!state) {
throw new RequiredParameterMissingError('state');
}

`getAuthorizationData()` was returning a URL without `state` when
`state` was `undefined`.
@aloisklink aloisklink added the bug Something isn't working label Nov 21, 2023
Copy link

vercel bot commented Nov 21, 2023

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
office-plugin-site ⬜️ Ignored (Inspect) Nov 21, 2023 2:56pm

@sidharthv96 sidharthv96 changed the base branch from fix/handle-relative-urls-in-handleAuthorizationResponse to main November 24, 2023 08:26
@sidharthv96 sidharthv96 marked this pull request as ready for review November 24, 2023 08:26
@sidharthv96 sidharthv96 merged commit 654d323 into main Nov 24, 2023
@aloisklink aloisklink deleted the fix/fix-handleAuthorizationResponse-missing-state-in-url branch November 24, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants