refactor: use sync bcrypt to avoid issues with worker perms
refactor: fix up includes
This commit is contained in:
parent
e397bc884b
commit
1a02dcfcc3
27 changed files with 104 additions and 178 deletions
|
@ -1,5 +1,5 @@
|
|||
import { getSetCookies } from '@std/http/cookie';
|
||||
import { generateTotp } from '@stdext/crypto/totp';
|
||||
import { generateTotp } from './totp.ts';
|
||||
|
||||
export interface API_CLIENT {
|
||||
fetch: (url: string, options?: FETCH_OPTIONS, transform?: (obj: any) => any) => Promise<any>;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { getCookies } from 'jsr:@std/http/cookie';
|
||||
import { getCookies } from '@std/http/cookie';
|
||||
import { SESSIONS } from '../models/session.ts';
|
||||
import { verifyTotp } from 'jsr:@stdext/crypto/totp';
|
||||
import { verifyTotp } from './totp.ts';
|
||||
import { USERS } from '../models/user.ts';
|
||||
import * as CANNED_RESPONSES from './canned_responses.ts';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// https://jsr.io/@stdext/crypto/0.1.0/hotp.ts
|
||||
// https://jsr.io/@stdext/crypto/0.1.0/totp.ts
|
||||
|
||||
import { decodeBase32 } from 'jsr:@std/encoding@^1';
|
||||
import { decodeBase32 } from '@std/encoding';
|
||||
|
||||
/** Converts a counter value to a DataView.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue