import {
    AuthenticationConfig,
    CoreIDLoginProvider,
    OAuth2LoginProviderConfig,
    ORMUserRepository,
    env,
    BasicLoginProvider,
} from '@extollo/lib'
import {LoginProviderConfig} from '@extollo/lib/lib/auth/provider/LoginProvider'

const authConfig: AuthenticationConfig = {
    storage: ORMUserRepository,
    providers: {
        local: {
            driver: BasicLoginProvider,
            config: {
                default: false,
                allow: {
                    login: true,
                    registration: false,
                },
            } as LoginProviderConfig,
        }
    },
}

export default authConfig
