From b1c7792e6a2c268edf2770895329c7d056e3642c Mon Sep 17 00:00:00 2001 From: Fabio Torchetti Date: Thu, 23 Jun 2022 13:14:46 -0500 Subject: [PATCH] Add documentation for new option Signed-off-by: Fabio Torchetti --- plugins/auth-backend/src/service/router.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/auth-backend/src/service/router.ts b/plugins/auth-backend/src/service/router.ts index ecd7f725a6..2f78f68d7d 100644 --- a/plugins/auth-backend/src/service/router.ts +++ b/plugins/auth-backend/src/service/router.ts @@ -44,6 +44,14 @@ export interface RouterOptions { config: Config; discovery: PluginEndpointDiscovery; tokenManager: TokenManager; + /** + * The algorithm to be used when signing the JWT token. + * + * @defaultValue `ES256` + * + * @remarks + * This is passed to {@link TokenFactory| the token factory}. + */ tokenKeyAlgorithm?: string; providerFactories?: ProviderFactories; }