I'm having a problem with api guard #1944
-
Always i try to use auth.use('api').authenticate(), it makes this query: But api_tokens doesn't have column id and it always tries to find 0. Someone can help? Here is my auth.ts file: `import { AuthConfig } from '@IOC:Adonis/Addons/Auth'
|
}, export default authConfig` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Share the code that you have used to generate the token and also how you are sending the token in request |
Beta Was this translation helpful? Give feedback.
-
My problem was solved when I set id in api_tokens as AI |
Beta Was this translation helpful? Give feedback.
Share the code that you have used to generate the token and also how you are sending the token in request