File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22VITE_API_BASE_URL = http://localhost:3000/api/v1
33VITE_ENV = dev
44VITE_HCAPTCHA_SITE_KEY = cd86c190-7a30-4042-9468-018cd91ef63c
5- FIREBASE_AUTH_ENABLED = true
5+ VITE_FIREBASE_AUTH_ENABLED = true
Original file line number Diff line number Diff line change 11VITE_API_BASE_URL = https://be.starters.rayonstudios.com/api
22VITE_ENV = production
33VITE_HCAPTCHA_SITE_KEY = cd86c190-7a30-4042-9468-018cd91ef63c
4- FIREBASE_AUTH_ENABLED = true
4+ VITE_FIREBASE_AUTH_ENABLED = true
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ VITE_API_BASE_URL=https://rayon-gcp-express-psql-starter-test-227506371134.us-ea
22# VITE_API_BASE_URL=http://localhost:3000/api/v1
33VITE_ENV = test
44VITE_HCAPTCHA_SITE_KEY = cd86c190-7a30-4042-9468-018cd91ef63c
5- FIREBASE_AUTH_ENABLED = true
5+ VITE_FIREBASE_AUTH_ENABLED = true
Original file line number Diff line number Diff line change @@ -42,3 +42,8 @@ export const firebase = {
4242 messaging,
4343 isEnabled : import . meta. env . VITE_FIREBASE_AUTH_ENABLED === "true" ,
4444} ;
45+
46+ export const getFirebaseEmail = ( email : string ) => {
47+ const [ prefix , domain ] = email . split ( "@" ) ;
48+ return `${ prefix } +${ import . meta. env . VITE_ENV || "dev" } @${ domain } ` ;
49+ } ;
Original file line number Diff line number Diff line change 1- import { firebase } from "@/lib/firebase/firebase.service" ;
1+ import { firebase , getFirebaseEmail } from "@/lib/firebase/firebase.service" ;
22import apiClient , { withApiResponseHandling } from "@/lib/openapi-fetch.config" ;
33import { signInWithEmailAndPassword , signOut } from "firebase/auth" ;
44import {
@@ -14,7 +14,7 @@ async function login(payload: AuthLoginBody) {
1414 firebase . isEnabled &&
1515 signInWithEmailAndPassword (
1616 firebase . auth ,
17- payload . email ,
17+ getFirebaseEmail ( payload . email ) ,
1818 payload . password
1919 ) ,
2020 ] ) ;
Original file line number Diff line number Diff line change @@ -139,10 +139,6 @@ const BgJobsPage = () => {
139139 < span className = "font-medium" > Created:</ span > { " " }
140140 { dayjs ( job . createdAt ) . fromNow ( ) }
141141 </ div >
142- < div >
143- < span className = "font-medium" > Updated:</ span > { " " }
144- { dayjs ( job . updatedAt ) . fromNow ( ) }
145- </ div >
146142 </ div >
147143 </ div >
148144 </ Card >
You can’t perform that action at this time.
0 commit comments