feat: (auth) Add Google and DIscord Auth
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m0s
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m0s
This commit is contained in:
@@ -44,8 +44,17 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
async function googleLogin() {
|
||||
account.createOAuth2Session(
|
||||
OAuthProvider.Google,
|
||||
'https://bab.toal.ca/',
|
||||
'https://bab.toal.ca/#/login'
|
||||
'https://undock.ca',
|
||||
'https://undock.ca/#/login'
|
||||
);
|
||||
currentUser.value = await account.get();
|
||||
}
|
||||
|
||||
async function discordLogin() {
|
||||
account.createOAuth2Session(
|
||||
OAuthProvider.Discord,
|
||||
'https://undock.ca',
|
||||
'https://undock.ca/#/login'
|
||||
);
|
||||
currentUser.value = await account.get();
|
||||
}
|
||||
@@ -88,6 +97,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
register,
|
||||
login,
|
||||
googleLogin,
|
||||
discordLogin,
|
||||
logout,
|
||||
init,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user