Interface JwtConfigType

interface JwtConfigType {
    aud: string[];
    expiration: {
        accessToken: StringValue;
        refreshToken: StringValue;
        serviceAccountAccessToken: StringValue;
        subscriptionToken: StringValue;
        [expiresIn: string]: StringValue;
    };
    iss: string;
    secret: Secret;
}

Properties

aud: string[]

JWT audience. Service which consumes the JWT

['bo', 'js', 'stk']
expiration: {
    accessToken: StringValue;
    refreshToken: StringValue;
    serviceAccountAccessToken: StringValue;
    subscriptionToken: StringValue;
    [expiresIn: string]: StringValue;
}

JWT expiration times

Type declaration

  • [expiresIn: string]: StringValue

    Other tokens expiration time

  • accessToken: StringValue

    Access token expiration time

  • refreshToken: StringValue

    Refresh token expiration time

  • serviceAccountAccessToken: StringValue

    Service account access token expiration time

  • subscriptionToken: StringValue

    Subscription token expiration time

iss: string

JWT issuer. Service which issues the JWT (shortname)

'js'
secret: Secret

JWT secret. Must be a string used to sign JWTs