mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-28 01:46:45 -05:00
feat(generic-oauth): allow basic auth (#1808)
This commit is contained in:
@@ -116,6 +116,11 @@ interface GenericOAuthConfig {
|
||||
* Disable sign up for new users.
|
||||
*/
|
||||
disableSignUp?: boolean;
|
||||
/**
|
||||
* Allows to use basic authentication for the token endpoint.
|
||||
* Default is "post".
|
||||
*/
|
||||
authentication?: "basic" | "post";
|
||||
}
|
||||
|
||||
interface GenericOAuthOptions {
|
||||
@@ -234,6 +239,7 @@ export const genericOAuth = (options: GenericOAuthOptions) => {
|
||||
redirectURI: c.redirectURI,
|
||||
},
|
||||
tokenEndpoint: finalTokenUrl,
|
||||
authentication: c.authentication,
|
||||
});
|
||||
},
|
||||
async getUserInfo(tokens) {
|
||||
|
||||
Reference in New Issue
Block a user