remove auth store debug logging
This commit is contained in:
parent
d1198422fe
commit
503f121324
1 changed files with 0 additions and 12 deletions
|
|
@ -120,14 +120,7 @@ function createAuthStore() {
|
||||||
async checkAndRefresh(): Promise<string | null> {
|
async checkAndRefresh(): Promise<string | null> {
|
||||||
const state = get(authStore)
|
const state = get(authStore)
|
||||||
|
|
||||||
console.log('[AuthStore] checkAndRefresh - current state:', {
|
|
||||||
hasToken: !!state.accessToken,
|
|
||||||
isAuthenticated: state.isAuthenticated,
|
|
||||||
expiresAt: state.expiresAt?.toISOString()
|
|
||||||
})
|
|
||||||
|
|
||||||
if (!state.accessToken) {
|
if (!state.accessToken) {
|
||||||
console.warn('[AuthStore] checkAndRefresh - no access token')
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -147,11 +140,6 @@ function createAuthStore() {
|
||||||
},
|
},
|
||||||
|
|
||||||
initFromServer: (accessToken: string | null, user: UserInfo | null, expiresAt: string | null) => {
|
initFromServer: (accessToken: string | null, user: UserInfo | null, expiresAt: string | null) => {
|
||||||
console.log('[AuthStore] initFromServer called with:', {
|
|
||||||
hasToken: !!accessToken,
|
|
||||||
hasUser: !!user,
|
|
||||||
expiresAt
|
|
||||||
})
|
|
||||||
if (accessToken && user && expiresAt) {
|
if (accessToken && user && expiresAt) {
|
||||||
set({
|
set({
|
||||||
accessToken,
|
accessToken,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue