fix user refresh
This commit is contained in:
parent
0b2a64e449
commit
cc3d138fd3
6 changed files with 6 additions and 13 deletions
|
@ -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 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue