Improve integration of oauthProvider and deviceAuthorization plugins. #2999

Open
opened 2026-03-13 10:33:34 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @shadiramadan on GitHub (Mar 5, 2026).

To Reproduce

Configure oauthProvider and deviceAuthorization plugins.

Current vs. Expected behavior

.well-known/oauth-authorization-server should:

  • Specify device_authorization_endpoint
  • Include the urn:ietf:params:oauth:grant-type:device_code grant type.

Follow RFC 8628 - the token endpoint should then support the device_code grant_type.

Maybe it makes more sense to move device code into the oauth plugin?

What version of Better Auth are you using?

1.4.19

System info

N/A

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

Backend

Originally created by @shadiramadan on GitHub (Mar 5, 2026). ### To Reproduce Configure oauthProvider and deviceAuthorization plugins. ### Current vs. Expected behavior `.well-known/oauth-authorization-server` should: - Specify `device_authorization_endpoint` - Include the `urn:ietf:params:oauth:grant-type:device_code` grant type. Follow RFC 8628 - the token endpoint should then support the device_code grant_type. Maybe it makes more sense to move device code into the oauth plugin? ### What version of Better Auth are you using? 1.4.19 ### System info ```bash N/A ``` ### Which area(s) are affected? (Select all that apply) Backend
GiteaMirror added the enhancement label 2026-03-13 10:33:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#2999