DevAuthCommand is a CLI command to generate a valid authentication token and sign-in URL for local development.

const jwt: JwtService
const url: UrlService
const registrationRepo: RegistrationRepository

const command = new DevAuthCommand({ jwt, url, registrationRepo })

const { url, token } = command.process({
email: 'jess@example.com',
interpreter: true,
admin: false,
})

console.log('Your dev token is %o', token)
console.log('Log in at %o', url)

Hierarchy

  • DevAuthCommand

Constructors

Methods

Constructors

Methods

Generated using TypeDoc