release: @marketplaces/auth 0.1.0 (built from main)

This commit is contained in:
sdarbinyan
2026-08-18 01:55:26 +04:00
commit 93f99cc7b1
44 changed files with 1601 additions and 0 deletions

14
dist/ed25519/jwt.service.d.ts vendored Normal file
View 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;
}