Merge pull request #14302 from hillmandj/fix-authenticate-api-docs

Fix Authenticate API Requests Example
This commit is contained in:
Patrik Oldsberg
2022-10-24 15:31:55 -04:00
committed by GitHub
@@ -75,7 +75,7 @@ export const createAuthMiddleware = async (
// Authorization header may be forwarded by plugin requests
req.headers.authorization = `Bearer ${token}`;
}
if (token && token !== req.cookies.token) {
if (token && token !== req.cookies?.token) {
setTokenCookie(res, {
token,
secure,