MCPcopy Create free account
hub / github.com/effect-app/libs / makeToken

Function makeToken

packages/infra/test/auth.test.ts:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const secret = "test-secret-test-secret-test-secret"
10
11const makeToken = () =>
12 new SignJWT({ scope: "read:all" })
13 .setProtectedHeader({ alg: "HS256", typ: "at+jwt" })
14 .setIssuer(issuer)
15 .setAudience(audience)
16 .setIssuedAt()
17 .setExpirationTime("10m")
18 .sign(new TextEncoder().encode(secret))
19
20describe("checkJWTI", () => {
21 it.effect(

Callers 1

auth.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…