Skip to content

Commit

Permalink
fix: typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 29, 2024
1 parent b02f8c2 commit 7eb5278
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion modules/basic_auth_guard/user_providers/lucid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class BasicAuthLucidUserProvider<UserModel extends LucidAuthenticatable>
const model = await this.getModel()
try {
const user = await model.verifyCredentials(uid, password)
return this.createUserForGuard(user)
return this.createUserForGuard(user as InstanceType<UserModel>)
} catch {
return null
}
Expand Down
2 changes: 0 additions & 2 deletions tests/basic_auth/define_config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import {
basicAuthGuard,
basicAuthUserProvider,
} from '../../modules/basic_auth_guard/define_config.js'
import { SessionGuard, SessionLucidUserProvider } from '../../modules/session_guard/main.js'
import { sessionGuard, sessionUserProvider } from '../../modules/session_guard/define_config.js'
import { BasicAuthGuard, BasicAuthLucidUserProvider } from '../../modules/basic_auth_guard/main.js'

test.group('defineConfig', () => {
Expand Down

0 comments on commit 7eb5278

Please sign in to comment.