auth
auth copied to clipboard
Official Authentication package for AdonisJS
## Why this feature is required (specific use-cases will be appreciated)? Just as the process for providing a custom user provider is documented here https://docs.adonisjs.com/guides/auth/custom-user-provider there are many authentication servers...
Hello guys I get this error "E_INVALID_API_TOKEN: The api token is missing or invalid" with adonisjs (4.1) when I try to logout. I am using version 3.2.0 of the package....
### Package version 9.1.1 ### Describe the bug I saw the following 2 codes here, https://github.com/adonisjs/auth/blob/016cc8c6a27109597d86c37caa81a5cf793f529a/modules/access_tokens_guard/token_providers/db.ts#L175-L176 https://github.com/adonisjs/auth/blob/016cc8c6a27109597d86c37caa81a5cf793f529a/modules/session_guard/token_providers/db.ts#L145-L146 It is noticed that the method/function `returning('id')` is used there, which is not...
## Proposed changes This pull request addresses the prefer-const issue identified in our codebase. The change involves modifying the guard variable declaration from let to const in the authentication loop,...
Hey there! 👋🏻 This PR fixes the [hard dependency](https://github.com/adonisjs/auth/issues/236) we have on `@adonisjs/lucid`. For the moment, I have written the helper `isModuleInstalled` in the root file, but we probably want...
Hey there! 👋🏻 The `@adonisj/auth` module strictly depends on `@adonisjs/lucid` since we added the `withAuthFinder` mixins. The mixin imports a Lucid decorator at its root: ```ts import { beforeSave, type...
> I used UUID (`char(36)`) on the `access_auth_tokens` table. I switched it to `bigint` and it's working fine now. Hopefully UUID will be supported here. _Originally posted by @sooluh in...
### 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...
### Package version 9.2.3 ### Describe the bug When adding the token guard to my project I got typescript errors in existing code when trying to load relationships on the...
### Package version 9.3.1 ### Describe the bug I have a multi-tenant application, with a seperate database for each tenant. using dynamic subdomains I want to add authentication using a...