fix: pass loginHint to Microsoft oauth URL (#3663)

* Pass `loginHint` to Microsoft OAuth URL

* chore: lint

* chore: add changeset

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
This commit is contained in:
Will
2025-07-27 23:55:51 -05:00
committed by GitHub
parent 040092bf7c
commit 29c0df5f12
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"better-auth": patch
---
add support for passing a loginHint to the Microsoft OAuth

View File

@@ -57,6 +57,7 @@ export const microsoft = (options: MicrosoftOptions) => {
scopes,
redirectURI: data.redirectURI,
prompt: options.prompt,
loginHint: data.loginHint,
});
},
validateAuthorizationCode({ code, codeVerifier, redirectURI }) {