Implement authentication composable with signin, signup, and session management; add route middleware for auth checks
This commit is contained in:
1 parent
e1716c3e61
commit
170d24c117
3 files changed
+64
No files matched your search
@@ -8,6 +8,8 @@ export const cfetch = async (
|
||||
): Promise<AxiosResponse> => {
|
||||
const baseUrl = import.meta.env.VITE_PUBLIC_BACKEND
|
||||
|
||||
if (!baseUrl) throw new Error("BACKEND URL not set")
|
||||
|
||||
const defaults: AxiosRequestConfig = {
|
||||
baseURL: baseUrl,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user