Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRivers committed Sep 11, 2024
1 parent 80d76c4 commit 19b5f96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type LoginMethodParams = Pick<
| "orgName"
| "connectionId"
| "redirectURL"
| "hasSuccessPage"
| "hasSuccessPage"
>;

export type LoginOptions = {
Expand Down
7 changes: 4 additions & 3 deletions lib/utils/generateRandomString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ function dec2hex(dec: number) {
}

function generateRandomStringNonCrypto(length: number = 28) {
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
let result = '';
const characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
let result = "";
const charactersLength = characters.length;

for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}

return result;
}

0 comments on commit 19b5f96

Please sign in to comment.