We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c253a6 commit a8f2606Copy full SHA for a8f2606
test-client/src/auth.ts
@@ -37,7 +37,7 @@ export async function getCredentials(options: CredentialsOptions): Promise<{ end
37
endpoint = `http://127.0.0.1:${parsed.port ?? 8080}`;
38
}
39
40
- const aud = parsed.client_auth?.audience?.[0] ?? endpoint;
+ const aud = [parsed.client_auth?.audience?.[0], endpoint].filter((a) => a != null);
41
42
const rawKey = keys[0];
43
const key = await jose.importJWK(rawKey);
@@ -50,7 +50,7 @@ export async function getCredentials(options: CredentialsOptions): Promise<{ end
50
.setIssuedAt()
51
.setIssuer('test-client')
52
.setAudience(aud)
53
- .setExpirationTime('1h')
+ .setExpirationTime('24h')
54
.sign(key);
55
56
return { token, endpoint };
0 commit comments