release: @marketplaces/auth 0.1.0 (built from main)
This commit is contained in:
14
dist/ed25519/jwt.service.d.ts
vendored
Normal file
14
dist/ed25519/jwt.service.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { JwtClaims } from './models/auth-api.model';
|
||||
/**
|
||||
* Client-side JWT *decoding* only - never verification. The signature is
|
||||
* meaningless to check here because the frontend has no trusted key to check
|
||||
* it against; verifying a JWT's signature is the backend's job on every
|
||||
* request. This service exists purely so the UI can read `role`/`exp` for
|
||||
* display and route-gating UX (e.g. "session expires in 4m").
|
||||
*/
|
||||
export declare class JwtService {
|
||||
decode(token: string): JwtClaims | null;
|
||||
isExpired(claims: JwtClaims, skewSeconds?: number): boolean;
|
||||
private isJwtClaims;
|
||||
private base64UrlDecode;
|
||||
}
|
||||
Reference in New Issue
Block a user