Implement signout functionality to clear authentication tokens
This commit is contained in:
1 parent
464bbaef9e
commit
5f572e769e
1 file changed
+4
-1
@@ -79,7 +79,10 @@ export const useAuth = () => {
|
|||||||
|
|
||||||
const signup = async (name: string, email: string, password: string) => {}
|
const signup = async (name: string, email: string, password: string) => {}
|
||||||
|
|
||||||
const signout = () => {}
|
const signout = () => {
|
||||||
|
refreshToken.value = null
|
||||||
|
sessionToken.value = null
|
||||||
|
}
|
||||||
|
|
||||||
const refreshSessionToken = async () => {
|
const refreshSessionToken = async () => {
|
||||||
if (waitForPromise) {
|
if (waitForPromise) {
|
||||||
|
|||||||
Reference in new issue
Block a user