Merge pull request #14302 from hillmandj/fix-authenticate-api-docs
Fix Authenticate API Requests Example
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user