Buckets:
| import { TokenOptions } from './tokenOptions'; | |
| /** | |
| * Interface for the JWT payload required for signing. | |
| */ | |
| interface JwsSignPayload { | |
| /** The issuer claim for the JWT. */ | |
| iss?: string; | |
| /** The space-delimited list of scopes for the requested token. */ | |
| scope?: string | string[]; | |
| /** The audience for the token. */ | |
| aud: string; | |
| /** The expiration time of the token, in seconds since the epoch. */ | |
| exp: number; | |
| /** The time the token was issued, in seconds since the epoch. */ | |
| iat: number; | |
| /** The subject claim for the JWT, used for impersonation. */ | |
| sub?: string; | |
| /** Additional claims to include in the JWT payload. */ | |
| [key: string]: any; | |
| } | |
| /** | |
| * Builds the JWT payload for signing. | |
| * @param tokenOptions The options for the token. | |
| * @returns The JWT payload. | |
| */ | |
| declare function buildPayloadForJwsSign(tokenOptions: TokenOptions): JwsSignPayload; | |
| /** | |
| * Creates a signed JWS (JSON Web Signature). | |
| * @param tokenOptions The options for the token. | |
| * @returns The signed JWS. | |
| */ | |
| declare function getJwsSign(tokenOptions: TokenOptions): string; | |
| export { buildPayloadForJwsSign, getJwsSign }; | |
Xet Storage Details
- Size:
- 1.16 kB
- Xet hash:
- 65cc45d2aa3d8fbc1120835c0b7497b49ebc02434bb84e71e8b003da9b15cd45
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.