chore(backend-plugin.md) - destructure identity
Signed-off-by: Eric Irwin <Eric.Irwin1124@gmail.com>
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user