-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot assign to read only property 'last_used_at' of object '#<Object>' #247
Comments
Can you please share where exactly in your codebase you face this error? |
In the reproduction repo, when I try to fetch "/me" endpoint from AuthController's "me" method, when doing auth.authenticate()
|
I have the same problem but it happens when assign to my route group an auth middleware: |
The errors is on the line 22 /**
async handle( |
Package version
9.2.3
Describe the bug
Im getting the error
Cannot assign to read only property 'last_used_at' of object '#' when trying to use the access token on Bearer auth for an api endpoint
Im using:
The error is thrown in line 313 in verify method in: https://github.com/adonisjs/auth/blob/main/modules/access_tokens_guard/token_providers/db.ts
Reproduction repo
https://github.com/mauro-arcelles/adonis-auth-bug
The text was updated successfully, but these errors were encountered: