show image preview + single file downloads
This commit is contained in:
@@ -32,12 +32,12 @@ export async function loginUser(
|
||||
const token = data.value.data.token;
|
||||
const { user, expiresAt } = data.value.data;
|
||||
|
||||
useAuthSession().value = {
|
||||
setAuthSession({
|
||||
type: 'WarrenAuth',
|
||||
id: token,
|
||||
user,
|
||||
expiresAt,
|
||||
};
|
||||
});
|
||||
|
||||
toast.success('Login', {
|
||||
description: `Successfully logged in`,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export async function logout() {
|
||||
useAuthSession().value = null;
|
||||
clearAuthSession();
|
||||
useAdminStore().$reset();
|
||||
useWarrenStore().$reset();
|
||||
await navigateTo({
|
||||
|
||||
@@ -57,12 +57,12 @@ export async function oidcLoginUser(
|
||||
const token = data.value.data.token;
|
||||
const { user, expiresAt } = data.value.data;
|
||||
|
||||
useAuthSession().value = {
|
||||
setAuthSession({
|
||||
type: 'WarrenAuth',
|
||||
id: token,
|
||||
user,
|
||||
expiresAt,
|
||||
};
|
||||
});
|
||||
|
||||
toast.success('OpenID Connect', {
|
||||
description: `Successfully logged in`,
|
||||
|
||||
Reference in New Issue
Block a user