mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 21:00:41 +00:00
feat(devices): add functionality to delete all authorized devices
This commit is contained in:
@@ -183,10 +183,18 @@ export interface Device {
|
||||
deviceIdentifier: string;
|
||||
name: string;
|
||||
type: number;
|
||||
sessionStamp: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface RefreshTokenRecord {
|
||||
userId: string;
|
||||
expiresAt: number;
|
||||
deviceIdentifier: string | null;
|
||||
deviceSessionStamp: string | null;
|
||||
}
|
||||
|
||||
export interface TrustedDeviceTokenSummary {
|
||||
deviceIdentifier: string;
|
||||
expiresAt: number;
|
||||
@@ -257,6 +265,8 @@ export interface JWTPayload {
|
||||
email_verified: boolean; // required by mobile client
|
||||
amr: string[]; // authentication methods reference - required by mobile client
|
||||
sstamp: string; // security stamp - invalidates token when user changes password
|
||||
did?: string; // device identifier - invalidates per-device sessions
|
||||
dstamp?: string; // device session stamp
|
||||
iat: number;
|
||||
exp: number;
|
||||
iss: string;
|
||||
|
||||
Reference in New Issue
Block a user