We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ffd016 + 27a4f50 commit 24ed0c0Copy full SHA for 24ed0c0
security/custom_authenticator.rst
@@ -37,12 +37,12 @@ method that fits most use-cases::
37
*/
38
public function supports(Request $request): ?bool
39
{
40
- return $request->headers->has('X-AUTH-TOKEN');
+ return $request->headers->has('auth-token');
41
}
42
43
public function authenticate(Request $request): Passport
44
45
- $apiToken = $request->headers->get('X-AUTH-TOKEN');
+ $apiToken = $request->headers->get('auth-token');
46
if (null === $apiToken) {
47
// The token header was empty, authentication fails with HTTP Status
48
// Code 401 "Unauthorized"
0 commit comments