@villedemontreal/jwt-validator
Version:
Module to validate JWT (JSON Web Tokens)
29 lines (26 loc) • 659 B
text/typescript
/**
* Configuration for the token transformation
* middleware (UTTM).
*/
export interface ITokenTtransformationMiddlewareConfig {
service: ITokenTtransformationMiddlewareServiceConfig;
extensions: {
jwt: {
customDataProvider: ITokenTtransformationMiddlewareCustomDataProviderConfig;
};
};
}
/**
* Configuration specific for the token transformation service.
*/
export interface ITokenTtransformationMiddlewareServiceConfig {
uri: string;
}
/**
* Configuration specific for the custom data provider.
*/
export interface ITokenTtransformationMiddlewareCustomDataProviderConfig {
uri: string;
method: string;
options: any;
}