rudimentary support for totp 2fa
[squeep-authentication-module] / lib / enum.js
1 'use strict';
2
3 const { mergeDeep, freezeDeep } = require('./common');
4 const { Enum: DingusEnum } = require('@squeep/api-dingus');
5
6 const Enum = mergeDeep(DingusEnum, {
7 Header: {
8 Authorization: 'Authorization',
9 Cookie: 'Cookie',
10 Location: 'Location',
11 SetCookie: 'Set-Cookie',
12 WWWAuthenticate: 'WWW-Authenticate',
13 },
14 SessionCookie: 'squeepSession',
15 OTPResult: {
16 Valid: 'Valid',
17 InvalidSoftFail: 'InvalidSoftFail',
18 InvalidHardFail: 'InvalidHardFail',
19 },
20 });
21
22 module.exports = freezeDeep(Enum);