Download packages/kap-server/test/helpers/fixedAuth.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/test/helpers/fixedAuth.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/kap-server/test/helpers/fixedAuth.ts
-
curl -L -o fixedAuth.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/test/helpers/fixedAuth.ts
288 Bytes
| import type { IAuthTokenService } from '../../src/services/auth/authTokenService'; | |
| export function fixedTokenAuth(token = 'test-token'): IAuthTokenService { | |
| return { | |
| _serviceBrand: undefined, | |
| getToken: () => token, | |
| isValid: async (candidate) => candidate === token, | |
| }; | |
| } | |