From a34dcec58dbbe6bf4c471d9793745ac97e4f71f9 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 8 Nov 2021 11:43:14 +0100 Subject: [PATCH] fix: update authN component config docs to new syntax Authentication metadata decorator was changed to be able set more than one authentication strategy. https://github.com/loopbackio/loopback-next/commit/ae6c0e68a58a2b574fd534242e599aa2a96fc855 However, the example in docs was not updated and currenty it is not working. Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com> --- docs/site/Authentication-component-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/site/Authentication-component-options.md b/docs/site/Authentication-component-options.md index 5d5207d228da..123c9ba40bda 100644 --- a/docs/site/Authentication-component-options.md +++ b/docs/site/Authentication-component-options.md @@ -31,7 +31,7 @@ simply configure the authentication component with `defaultMetadata` as follows: ```ts app .configure(AuthenticationBindings.COMPONENT) - .to({defaultMetadata: {strategy: 'xyz'}}); + .to({defaultMetadata: [{strategy: 'xyz'}]}); ``` If multiple strategies are used for a given method, we can configure the