fix user refresh

This commit is contained in:
john 2025-05-20 23:43:43 +02:00
parent 0b2a64e449
commit cc3d138fd3
6 changed files with 6 additions and 13 deletions

View file

@ -1,7 +1,6 @@
import { dispatchMessage } from '../messageBus/messageBus.ts'
import { ProblemDetails } from '../../types'
import { SignupCode } from './signupCode.ts'
import { getCookie } from './cookies.ts'
import { ApiClient } from '../api/client.ts'
export class AuthService {
@ -66,10 +65,6 @@ export class AuthService {
}
async refreshUser(userId: string) {
if (getCookie('hasSession') !== 'true') {
return null
}
await this.client.GET(`/auth/user/{userId}`, {
params: {
path: { userId },