supertokens-node
supertokens-node copied to clipboard
Node SDK for SuperTokens core
IMO: we should use methods instead of defining them as functions assigned as props where possible.
Currently it's only possible to pass in either `html` or `text` but not both when overriding the default email templates. Here's an excerpt from the relevant [source code](https://github.com/supertokens/supertokens-node/blob/master/lib/ts/recipe/emailverification/emaildelivery/services/smtp/serviceImplementation.ts): ``` ......
Investigate why this test is flaky/increase timeout if necessary. ``` sessionClaims/createNewSession: [test/session/claims/createNewSession.test.js] createNewSession should create access token payload w/ session claims: ``` Example: https://app.circleci.com/pipelines/github/supertokens/supertokens-node/2617/workflows/6bc92b57-c07f-4393-b05b-9fdd0b5d5571/jobs/1096
This can be used by frontend clients to early detect if a session has been revoked in case it was revoked on the backend. The implementation would: - verify the...
See https://github.com/nodejs/release#release-schedule The minimum version supported in maintenance mode is Node.js 14, thus it is legit to increase the target ECMA version. e.g. to https://github.com/tsconfig/bases/blob/main/bases/node14.json LTS graphic: https://github.com/nodejs/release#release-schedule Current version:...
There is a `disableEmailPassword` option for `ThirdPartyEmailPasswordReact.init` call from `supertokens-auth-react/recipe/thirdpartyemailpassword`. I expected there to be a counterpart for the `ThirdPartyEmailPasswordNode.init` call from `supertokens-node/recipe/thirdpartyemailpassword`. The recommended way on the backend is...
This is so that the types can be made simpler internally in the SDK. Also from the user's point of view, it's equally difficult / easy to override the sub...
Right now, if a user wants to intentionally update the access token payload to add null to it, calling mergeIntoAccessTokenPayload won't allow that since it treats `null` as deletions. For...
if maxAgeInSeconds undefined, we set it to infinte if value doesnt exist in paylaod, we call fetchAndSet, and then return it if max age has passed, we call fetchAndSet and...
## Summary of change Adds H3 support. Continuation from https://github.com/supertokens/supertokens-node/pull/297 PR ## Related issues - https://github.com/supertokens/supertokens-node/pull/297 ## Test Plan TODO ## Documentation changes (If relevant, please create a PR in...