mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 18:41:52 +08:00
cc5a6e6d40
packages/frontend/web -> packages/frontend/apps/web packages/frontend/mobile -> packages/frontend/apps/mobile packages/frontend/electron -> packages/frontend/apps/electron
8 lines
310 B
TypeScript
8 lines
310 B
TypeScript
import { mintChallengeResponse } from '@affine/native';
|
|
|
|
export const getChallengeResponse = async (resource: string) => {
|
|
// 20 bits challenge is a balance between security and user experience
|
|
// 20 bits challenge cost time is about 1-3s on m2 macbook air
|
|
return mintChallengeResponse(resource, 20);
|
|
};
|