Fix passing expiresInHours query parameter

This commit is contained in:
Alexis Tual authored and Daz DeBoer committed 2024-09-12 18:43:23 -06:00
1 parent a122cf5aa7
commit 765a73447c
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ class ShortLivedTokenClient {
retryInterval = 1000
async fetchToken(serverUrl: string, accessKey: HostnameAccessKey, expiry: string): Promise<HostnameAccessKey> {
const queryParams = expiry ? `?expiresInHours${expiry}` : ''
const queryParams = expiry ? `?expiresInHours=${expiry}` : ''
const sanitizedServerUrl = !serverUrl.endsWith('/') ? `${serverUrl}/` : serverUrl
const headers = {
'Content-Type': 'application/json',