Closed enxoco closed 1 year ago
Hey @enxoco! 👋🏻
Please check https://github.com/adonisjs/auth/issues/200
@RomainLanz Thanks for the quick reply and I apologize for not doing a thorough search before posting this. I am assuming that I can simply upgrade the auth package to the latest version to resolve this issue? Giving that a shot now.
Yes, and copy the PR content inside your contracts/auth.ts
file where needed.
Closing since not actionable
Package version
@adonisjs/auth 8.2.1
Node.js and npm version
v16.13.1 and 8.1.2
Sample Code (to reproduce the issue)
Issue
Maybe I am doing this wrong but I am trying to write a test to verify that api token authentication is working properly. My first issue is that I get the following type error with the above code:
My second issue is that is seems that even if I delete all of the api tokens before attempted to make the request I am still receiving a success response. I would expect that this would fail. Am I not doing this right?