Add debug logs around authentication
Trying to troubleshoot our redirection logic after signin
This commit is contained in:
parent
bcc5151116
commit
a0ac5c0674
1 changed files with 2 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ export const useSessionStore = defineStore("session", () => {
|
|||
try {
|
||||
const data: Session = await apiClient.JSONGet("/api/session");
|
||||
isAuthenticated.value = true;
|
||||
console.log("set authenticated", isAuthenticated.value);
|
||||
impersonating.value = data.impersonating || null;
|
||||
notification_counts.value = data.notification_counts;
|
||||
organization.value = data.organization;
|
||||
|
|
@ -76,6 +77,7 @@ export const useSessionStore = defineStore("session", () => {
|
|||
}
|
||||
async function signout(): Promise<void> {
|
||||
isAuthenticated.value = false;
|
||||
console.log("set authenticated", isAuthenticated.value);
|
||||
apiClient.JSONPost("/api/signout", {});
|
||||
}
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue