Skip to content

Add support for verifying OTP verification token JWT signatures#1191

Open
t-vila wants to merge 2 commits intomainfrom
traian/verify-verificationToken
Open

Add support for verifying OTP verification token JWT signatures#1191
t-vila wants to merge 2 commits intomainfrom
traian/verify-verificationToken

Conversation

@t-vila
Copy link
Contributor

@t-vila t-vila commented Feb 9, 2026

Summary & Motivation

  • Added PRODUCTION_OTP_VERIFICATION_PUBLIC_KEY constant
  • Added VerificationTokenClaims interface for type safety
  • Added verifyOtpVerificationToken() function with optional key override for testing

How I Tested These Changes

  • Added tests using real sandbox tokens

Did you add a changeset?

If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run pnpm changeset. pnpm changeset will generate a file where you should write a human friendly message about the changes. Note how this (example) includes the package name (should be auto added by the command) along with the type of semver change (major.minor.patch) (which you should set).

These changes will be used at release time to determine what packages to publish and how to bump their version. For more context see this comment.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 9, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 122ea89:

Sandbox Source
@turnkey/example-react-components Configuration

@t-vila t-vila force-pushed the traian/verify-verificationToken branch from 16d7761 to 122ea89 Compare February 10, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant