-
Notifications
You must be signed in to change notification settings - Fork 17
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
Provide a clean mechanism to lock refresh tokens to sdk versions #1074
base: main
Are you sure you want to change the base?
Conversation
$refreshTokenMarker: undefined, | ||
}; | ||
|
||
const oldLocalStorageKey = `@osdk/oauth : refresh : ${client.client_id}`; |
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.
Ensure that people not using this feature won't get logged out on upgrade of @osdk/oauth
packages/oauth/src/common.test.ts
Outdated
$refreshTokenMarker: "magic_marker_friend", | ||
}; | ||
|
||
const localStorageKey = |
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.
Make sure that if you do specify the refreshTokenMarker that it is used.
@@ -237,7 +243,7 @@ export function createAuthorizationServer( | |||
| "revocation_endpoint" | |||
> | |||
> { | |||
const issuer = `${new URL(ctxPath, url)}`; | |||
const issuer = `${new URL(ctxPath, url + "/")}`; |
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.
Fix an issue where Tim's tests weren't working if you forgot trailing slash
@@ -24,6 +24,7 @@ | |||
"clean": "rm -rf lib dist types build tsconfig.tsbuildinfo", | |||
"fix-lint": "eslint . --fix && dprint fmt --config $(find-up dprint.json)", | |||
"lint": "eslint . && dprint check --config $(find-up dprint.json)", | |||
"test": "vitest run --pool=forks", |
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.
I think Tim's changes were not properly failing build due to this not being present.
Invalidated by push of d717767
1c60479
to
dee814c
Compare
Fixes #1073
Example usage would be: