Default exporting providers

This commit is contained in:
2025-04-25 17:33:24 +02:00
committed by ewandor
parent 76a5c0b454
commit cc73fc4af2
3 changed files with 9 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ const DISCORD_SCOPES = { "scopes": "identify email" }
const DEFAULT_LOGIN_REDIRECT = "/hub"
export const authProvider: AuthProvider = {
const authProvider: AuthProvider = {
login: async ({ providerName, email, password }) => {
const to_param = findGetParameter("to");
const redirect = to_param === null ? DEFAULT_LOGIN_REDIRECT : to_param
@@ -199,3 +199,5 @@ function findGetParameter(parameterName: string) {
});
return result;
}
export default authProvider;