major: Migration from better-auth to keycloak
This commit is contained in:
20
legalconsenthub/types/auth.d.ts
vendored
Normal file
20
legalconsenthub/types/auth.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
declare module '#auth-utils' {
|
||||
interface User {
|
||||
keycloakId: string
|
||||
name: string
|
||||
organizations: Organization[]
|
||||
}
|
||||
|
||||
interface UserSession {
|
||||
name: string
|
||||
organizations: Organization[]
|
||||
loggedInAt: number
|
||||
jwt: {
|
||||
accessToken: string
|
||||
refreshToken: string
|
||||
expiresIn: number
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
||||
Reference in New Issue
Block a user