import { BindingKey } from '@loopback/core' ; import { BasicAuthenticationUserService } from './services/basic-auth-user-service' ; import { JWTService } from './services/jwt-service' ; import { UserRepository } from './users/user.repository' ; export const USER_REPO = BindingKey . create < UserRepository > ( 'authentication.user.repo' ) ; export namespace BasicAuthenticationStrategyBindings { export const USER_SERVICE = BindingKey . create < BasicAuthenticationUserService > ( 'services.authentication.basic.user.service' ) ; } export namespace JWTAuthenticationStrategyBindings { export const TOKEN_SECRET = BindingKey . create < string > ( 'authentication.jwt.secret' ) ; export const TOKEN_EXPIRES_IN = BindingKey . create < string > ( 'authentication.jwt.expires.in.seconds' ) ; export const TOKEN_SERVICE = BindingKey . create < JWTService > ( 'services.authentication.jwt.tokenservice' ) ; }