One time token does not set cookies #1379

Closed
opened 2026-03-13 08:35:54 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @zispidd on GitHub (Jun 18, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Set up one time token plugin
  2. Verify token

Current vs. Expected behavior

Expected:
Cookies must be enabled to continue using the session elsewhere
Current:
Returns the session and does nothing

What version of Better Auth are you using?

1.2.9

Provide environment information

- Bun, Elysia

Which area(s) are affected? (Select all that apply)

Backend

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  plugins: [
    oneTimeToken()
  ]
});

Additional context

No response

Originally created by @zispidd on GitHub (Jun 18, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce 1. Set up one time token plugin 2. Verify token ### Current vs. Expected behavior Expected: Cookies must be enabled to continue using the session elsewhere Current: Returns the session and does nothing ### What version of Better Auth are you using? 1.2.9 ### Provide environment information ```bash - Bun, Elysia ``` ### Which area(s) are affected? (Select all that apply) Backend ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ plugins: [ oneTimeToken() ] }); ``` ### Additional context _No response_
GiteaMirror added the elysia label 2026-03-13 08:35:54 -05:00
Author
Owner

@ping-maxwell commented on GitHub (Jul 1, 2025):

It's by design that we don't set cookies.
The docs also mention "single-use session tokens"

@ping-maxwell commented on GitHub (Jul 1, 2025): It's by design that we don't set cookies. The docs also mention "single-use session tokens"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1379