Skip to content

Conversation

Montreal-Dev
Copy link

@Montreal-Dev Montreal-Dev commented Jul 14, 2025

☕️ Reasoning

Adds a token.conform to the Notion provider to normalize the OAuth token response. Notion returns "refresh_token": null by default. This can break downstream logic that expects refresh_token to always be a string.

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

Fixes: #13109

📌 Resources

Update the conform function to only delete refresh_token if it is explicitly null, ensuring valid string values are preserved in the response.
Clarified in the documentation that the Notion OAuth API does not support refreshing tokens and the access token never expires.
Copy link

vercel bot commented Jul 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2025 8:57pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Jul 14, 2025 8:57pm

Copy link

vercel bot commented Jul 14, 2025

@Montreal-Dev is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core` providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞 Notion provider: OAuth response includes "refresh_token: null", causing CallbackRouteError
1 participant