mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
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:
5
.changeset/stale-tomatoes-warn.md
Normal file
5
.changeset/stale-tomatoes-warn.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"better-auth": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
add support for passing a loginHint to the Microsoft OAuth
|
||||||
@@ -57,6 +57,7 @@ export const microsoft = (options: MicrosoftOptions) => {
|
|||||||
scopes,
|
scopes,
|
||||||
redirectURI: data.redirectURI,
|
redirectURI: data.redirectURI,
|
||||||
prompt: options.prompt,
|
prompt: options.prompt,
|
||||||
|
loginHint: data.loginHint,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
validateAuthorizationCode({ code, codeVerifier, redirectURI }) {
|
validateAuthorizationCode({ code, codeVerifier, redirectURI }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user