feat(generic-oauth): allow basic auth (#1808)

This commit is contained in:
BeerMonsterDota
2025-03-13 23:05:20 +03:00
committed by GitHub
parent fb433bf85b
commit 95cb5e2895

View File

@@ -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) {