Closed krishnajangid closed 4 years ago
You must specify token
parameter in your handler methods.
https://sanic-jwt-extended.seonghyeon.dev/usage/basic.html#protect-views
And taking a list of roles is not designed behavior. 🤔 I have to take a look for this. and I want to keep the built-in function as simple as possible, so if you want a complex access control, you may have to make your own code that interacts with JWT object.
Thanks, @NovemberOscar. The token issue is resolved.
While using decorators in class-based we get an error.
TypeError: post() got an unexpected keyword argument 'token'
And another thing is while initializing role for a user it takes only one role.
Actually it should take a list of roles.