Skip to content

Commit

Permalink
feat(loginPage): it was working all along, just config in external se…
Browse files Browse the repository at this point in the history
…rvice
  • Loading branch information
Zefir12 committed Feb 9, 2025
1 parent 017a3ae commit c6c8e05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/login/store/loginStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const useLoginStore = defineStore("login", () => {

const user = ref();
const session = ref();
console.log("Current NODE_ENV:", process.env.NODE_ENV);

async function loginUser() {
loading.value = true;
Expand Down Expand Up @@ -49,7 +48,7 @@ export const useLoginStore = defineStore("login", () => {
});

const googleLogin = async () => {
const redirectUrl = process.env.NODE_ENV != "development" ? "https://zefirlabs.net/dashboard" : "http://localhost:3999/dashboard";
const redirectUrl = process.env.NODE_ENV != "development" ? "https://zefirlabs.net" : "http://localhost:3999";
const { error } = await supabase.auth.signInWithOAuth({
provider: "google",
options: {
Expand Down

0 comments on commit c6c8e05

Please sign in to comment.