From 9f09327b28ad322359da2a89731254451a47be30 Mon Sep 17 00:00:00 2001 From: Eric Irwin Date: Thu, 30 Mar 2023 15:17:34 -0600 Subject: [PATCH] chore(backend-plugin.md) - destructure identity Signed-off-by: Eric Irwin --- docs/plugins/backend-plugin.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/plugins/backend-plugin.md b/docs/plugins/backend-plugin.md index 9ce835f5f5..897a66ae79 100644 --- a/docs/plugins/backend-plugin.md +++ b/docs/plugins/backend-plugin.md @@ -184,6 +184,7 @@ export async function createRouter( options: RouterOptions, ): Promise { const router = Router(); + const { identity } = options; router.post('/example', async (req, res) => { const identity = await identity.getIdentity({ request: req });