Skip to content

Commit

Permalink
fix: export interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
godinc0 committed Apr 28, 2023
1 parent 7de4c53 commit aabacd0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/hmac-based/hmac-based.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
HotpValidateOptions,
TotpConfig,
ValidTotpConfig,
} from "../interfaces/otp.interface";
} from "../interfaces";
import { generateConfig } from "../index";
import { Decode32 } from "../utils/encode";
import crypto from "crypto";
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
TotpConfig,
UrlOptions,
ValidTotpConfig,
} from "./interfaces/otp.interface";
} from "./interfaces";
import { TimeBased } from "./time-based/time-based";
import { Encode32 } from "./utils/encode";
import crypto from "crypto";
Expand Down Expand Up @@ -79,3 +79,4 @@ export const generateUrl = (

export const Totp = new TimeBased();
export const Hotp = new HmacBased();
export * from './interfaces';
File renamed without changes.
2 changes: 1 addition & 1 deletion src/time-based/generate-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
TotpConfig,
TotpOptions,
ValidTotpConfig,
} from "../interfaces/otp.interface";
} from "../interfaces";
import { generateConfig, generateSecret, generateUrl } from "../index";

// https://github.com/google/google-authenticator/wiki/Key-Uri-Format
Expand Down
2 changes: 1 addition & 1 deletion src/time-based/time-based.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
TotpOptions,
ValidTotpConfig,
TotpValidateOptions,
} from "../interfaces/otp.interface";
} from "../interfaces";
import { generateConfig } from "../index";
import { DEFAULT_TOTP_PERIOD } from "../utils/constants";
import { ValidationError } from "../utils/validation-error";
Expand Down

0 comments on commit aabacd0

Please sign in to comment.