mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-11 23:50:07 +01:00
20 lines
283 B
Text
20 lines
283 B
Text
meta {
|
|
name: 401 Invalid Token
|
|
type: http
|
|
seq: 6
|
|
}
|
|
|
|
get {
|
|
url: http://localhost:3000/api/protected
|
|
body: none
|
|
auth: bearer
|
|
}
|
|
|
|
auth:bearer {
|
|
token: blablabla.xxxx.xxxx
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 401
|
|
res.headers['www-authenticate']: eq Bearer error="invalid_token"
|
|
}
|