feat: basic user popup implemented
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
fc266ffcc3
commit
a2c04af8ce
5 changed files with 128 additions and 9 deletions
|
@ -75,7 +75,7 @@ export const useAuth = () => {
|
|||
async function fetchUser() {
|
||||
if (!accessToken.value) return;
|
||||
console.log("fetchuser access token:", accessToken.value);
|
||||
const res = await fetchWithApi("/users/me") as UserResponse;
|
||||
const res = await fetchWithApi("/me") as UserResponse;
|
||||
user.value = res;
|
||||
return user.value;
|
||||
}
|
||||
|
@ -88,6 +88,20 @@ export const useAuth = () => {
|
|||
return user.value;
|
||||
}
|
||||
|
||||
|
||||
// as in email the password link
|
||||
async function resetPassword() {
|
||||
// ...
|
||||
}
|
||||
|
||||
async function disableAccount() {
|
||||
// ...
|
||||
}
|
||||
|
||||
async function deleteAccount() {
|
||||
// ...
|
||||
}
|
||||
|
||||
return {
|
||||
accessToken,
|
||||
register,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue