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

chore: upgrade supertokens-node to 17.x.x #5894

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/services/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"prom-client": "15.1.3",
"redlock": "5.0.0-beta.2",
"slonik": "30.4.4",
"supertokens-node": "16.7.5",
"supertokens-node": "17.1.4",
"tslib": "2.8.0",
"undici": "6.20.1",
"vitest": "2.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/services/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"prom-client": "15.1.3",
"reflect-metadata": "0.2.2",
"supertokens-js-override": "0.0.4",
"supertokens-node": "16.7.5",
"supertokens-node": "17.1.4",
"tslib": "2.8.0",
"zod": "3.23.8"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/services/server/src/supertokens/oidc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { TypeInput as ThirdPartEmailPasswordTypeInput } from 'supertokens-n
import zod from 'zod';
import { createInternalApiCaller } from '../api';

const couldNotResolveOidcIntegrationSymbol = Symbol('could_not_resolve_oidc_integration');
const couldNotResolveOidcIntegrationBrand = '[graphql_hive]err_could_not_resolve_oidc_integration';

type InternalApiCaller = ReturnType<typeof createInternalApiCaller>;

Expand All @@ -14,7 +14,7 @@ export const getOIDCSuperTokensOverrides = (): ThirdPartEmailPasswordTypeInput['
return {
...originalImplementation,
async authorisationUrlGET(input) {
if (input.userContext?.[couldNotResolveOidcIntegrationSymbol] === true) {
if (input.userContext?.[couldNotResolveOidcIntegrationBrand] === true) {
return {
status: 'GENERAL_ERROR',
message: 'Could not find OIDC integration.',
Expand Down Expand Up @@ -48,7 +48,7 @@ export const createOIDCSuperTokensProvider = (args: {
// In the next step the override `authorisationUrlGET` from `getOIDCSuperTokensOverrides` is called.
// We use the user context to return a `GENERAL_ERROR` with a human readable message.
// We cannot return an error here (except an "Unexpected error"), so we also need to return fake dat
input.userContext[couldNotResolveOidcIntegrationSymbol] = true;
input.userContext[couldNotResolveOidcIntegrationBrand] = true;

return {
thirdPartyId: 'oidc',
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading