Enable basic auth provider and bump version of lib

This commit is contained in:
2022-04-09 20:12:08 -05:00
parent 662ba0aa3d
commit 8e99d91701
3 changed files with 21 additions and 10 deletions

View File

@@ -1,8 +1,19 @@
import {AuthenticationConfig, ORMUserRepository} from '@extollo/lib'
import {AuthenticationConfig, ORMUserRepository, BasicLoginProvider} from '@extollo/lib'
const authConfig: AuthenticationConfig = {
storage: ORMUserRepository,
providers: {},
providers: {
basic: {
driver: BasicLoginProvider,
config: {
default: true,
allow: {
login: true,
registration: true,
},
},
}
},
}
export default authConfig