mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-12 16:10:06 +01:00
21 lines
283 B
Text
21 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"
|
||
|
|
}
|