feat: add basis of auth

This commit is contained in:
SauceyRed 2025-05-01 22:35:18 +02:00
parent 67f98735ee
commit 893b3726bb
Signed by: sauceyred
GPG key ID: 270B096EF6E9A462
4 changed files with 313 additions and 0 deletions

17
stores/auth.ts Normal file
View file

@ -0,0 +1,17 @@
import { defineStore } from 'pinia'
export const useAuthStore = defineStore("auth", {
state: () => ({
accessToken: null as string | null
}),
getters: {
getAccessToken: (state) => {
return state.accessToken;
}
},
actions: {
setAccessToken(value: string) {
this.accessToken = value;
}
}
})