1
0
mirror of https://github.com/0rangebananaspy/authelia.git synced 2024-09-14 22:47:21 +07:00
authelia/server/src/lib/authentication/totp/ITotpHandler.ts
Clement Michaud 54854bacb1 Use issuer and label when generating otpauthURL for TOTP
Issuer is customizable in configuration so that a company can set its own name
or website. If not provided, default value is 'authelia.com'.

The username is used as label.
2017-10-31 21:36:47 +01:00

6 lines
200 B
TypeScript

import { TOTPSecret } from "../../../../types/TOTPSecret";
export interface ITotpHandler {
generate(label: string, issuer: string): TOTPSecret;
validate(token: string, secret: string): boolean;
}