chore(backend-plugin.md) - destructure identity

Signed-off-by: Eric Irwin <Eric.Irwin1124@gmail.com>
This commit is contained in:
Eric Irwin
2023-03-30 15:17:34 -06:00
committed by GitHub
parent 391b7fbd28
commit 9f09327b28
+1
View File
@@ -184,6 +184,7 @@ export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {
const router = Router();
const { identity } = options;
router.post('/example', async (req, res) => {
const identity = await identity.getIdentity({ request: req });