fix: export const Token type
This commit is contained in:
@@ -1 +1,6 @@
|
||||
export const PASSPORT_OPTIONS = Symbol('PassportOptions')
|
||||
|
||||
export const TOKEN_TYPES = {
|
||||
AUTH: 'PassportToken/v1',
|
||||
TEMP_2FA: 'PassportToken/v1/2fa'
|
||||
} as const
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
import { Inject, Injectable } from '@nestjs/common'
|
||||
import { createHmac, randomUUID } from 'crypto'
|
||||
|
||||
import { PASSPORT_OPTIONS } from './constants'
|
||||
import { PASSPORT_OPTIONS, TOKEN_TYPES } from './constants'
|
||||
import { PassportOptions } from './interfaces'
|
||||
import { base64UrlDecode, base64UrlEncode, constantTimeEqual } from './utils'
|
||||
|
||||
const TOKEN_TYPES = {
|
||||
AUTH: 'PassportToken/v1',
|
||||
TEMP_2FA: 'PassportToken/v1/2fa'
|
||||
} as const
|
||||
|
||||
type TokenType = (typeof TOKEN_TYPES)[keyof typeof TOKEN_TYPES]
|
||||
|
||||
@Injectable()
|
||||
|
||||
Reference in New Issue
Block a user