Skip to content
Migrating from NextAuth.js v4? Read our migration guide.

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 © Balázs Orbán and Team - 2024