From 92d7b7e20de255cf8b8f39aa3febedc81af038ee Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 8 Nov 2021 11:43:14 +0100 Subject: [PATCH] Updated authentication docs to reflect breaking changes 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. --- 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