Skip to content
The Auth.js project is now part of Better Auth.

Medium Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/medium

Environment Variables

AUTH_MEDIUM_ID
AUTH_MEDIUM_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import Medium from "next-auth/providers/medium"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Medium],
})

Notes

  • Email address is not returned by the Medium API.
Auth.js © Better Auth Inc. - 2025