-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
feat: move jwt to URL hash from search parameters #14749
Conversation
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.
Can you add a comment at the place we want to drop down the road? with a TODO. Thanks
const jwt = parseURLParams(url, true, 'hash').jwt; | ||
|
||
// TODO: eventually remove the search param and only pull from the hash | ||
// @ts-ignore | ||
return jwt ? jwt : parseURLParams(url, true, 'search').jwt; |
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.
const jwt = parseURLParams(url, true, 'hash').jwt; | |
// TODO: eventually remove the search param and only pull from the hash | |
// @ts-ignore | |
return jwt ? jwt : parseURLParams(url, true, 'search').jwt; | |
return parseURLParams(url, true, 'hash').jwt; |
Please @aaronkvanmeerten respect the repo commit convention. I know not all repos have the same. |
What do you mean? |
feat(thing) description |
Well, honestly, that is also new to me. I remember when we added that in the guideline and it was saying feat, fix and lang. Now I see it has changed and I do not see it mentioning the lang prefix. |
This was changed a year and a half ago jitsi/handbook@8fc45b8 |
FTR, we discusses offline and will continue doing so. |
This updates the external API to send the JWT both as a URL hash parameter as well as a query string for backwards compatibility. The JWT parsing function now prefers the hash value over the query string value.