HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: /var/www/api.javaapp.co.uk/node_modules/jose/dist/types/jwt/produce.d.ts
import type { JWTPayload } from '../types';
/** Generic class for JWT producing. */
export declare class ProduceJWT {
    protected _payload: JWTPayload;
    /** @param payload The JWT Claims Set object. */
    constructor(payload: JWTPayload);
    /**
     * Set "iss" (Issuer) Claim.
     *
     * @param issuer "Issuer" Claim value to set on the JWT Claims Set.
     */
    setIssuer(issuer: string): this;
    /**
     * Set "sub" (Subject) Claim.
     *
     * @param subject "sub" (Subject) Claim value to set on the JWT Claims Set.
     */
    setSubject(subject: string): this;
    /**
     * Set "aud" (Audience) Claim.
     *
     * @param audience "aud" (Audience) Claim value to set on the JWT Claims Set.
     */
    setAudience(audience: string | string[]): this;
    /**
     * Set "jti" (JWT ID) Claim.
     *
     * @param jwtId "jti" (JWT ID) Claim value to set on the JWT Claims Set.
     */
    setJti(jwtId: string): this;
    /**
     * Set "nbf" (Not Before) Claim.
     *
     * @param input "nbf" (Not Before) Claim value to set on the JWT Claims Set. When number is passed
     *   that is used as a value, when string is passed it is resolved to a time span and added to the
     *   current timestamp.
     */
    setNotBefore(input: number | string): this;
    /**
     * Set "exp" (Expiration Time) Claim.
     *
     * @param input "exp" (Expiration Time) Claim value to set on the JWT Claims Set. When number is
     *   passed that is used as a value, when string is passed it is resolved to a time span and added
     *   to the current timestamp.
     */
    setExpirationTime(input: number | string): this;
    /**
     * Set "iat" (Issued At) Claim.
     *
     * @param input "iat" (Issued At) Claim value to set on the JWT Claims Set. Default is current
     *   timestamp.
     */
    setIssuedAt(input?: number): this;
}