mirror of
https://github.com/teamhanko/hanko.git
synced 2025-11-02 23:24:29 +08:00
feat: Server side sessions (#1673)
* feat: add server side sessions * feat: add lastUsed & admin endpoint * feat: add session list to elements * fix: fix public session endpoint * chore: only store session info when enabled * build: update go mod * feat: add translations * test: fix tests * feat: change path * feat: return userID on session validation endpoint * feat: move all session endpoints to public router * fix: add missing translation * fix: add missing structs * chore: align session persister with other persisters * fix: use correct translation label * chore: add db validator to session model * feat: create server side session from cmd * fix: fix review findings
This commit is contained in:
@ -11,6 +11,7 @@ import { EmailClient } from "./lib/client/EmailClient";
|
||||
import { ThirdPartyClient } from "./lib/client/ThirdPartyClient";
|
||||
import { TokenClient } from "./lib/client/TokenClient";
|
||||
import { EnterpriseClient } from "./lib/client/EnterpriseClient";
|
||||
import { SessionClient } from "./lib/client/SessionClient";
|
||||
|
||||
export {
|
||||
UserClient,
|
||||
@ -18,6 +19,7 @@ export {
|
||||
ThirdPartyClient,
|
||||
TokenClient,
|
||||
EnterpriseClient,
|
||||
SessionClient,
|
||||
};
|
||||
|
||||
// Utils
|
||||
@ -48,6 +50,7 @@ import {
|
||||
WebauthnCredential,
|
||||
WebauthnCredentials,
|
||||
Identity,
|
||||
SessionCheckResponse,
|
||||
} from "./lib/Dto";
|
||||
|
||||
export type {
|
||||
@ -70,6 +73,7 @@ export type {
|
||||
WebauthnCredential,
|
||||
WebauthnCredentials,
|
||||
Identity,
|
||||
SessionCheckResponse,
|
||||
};
|
||||
|
||||
// Errors
|
||||
|
||||
Reference in New Issue
Block a user