Skip to content

Commit

Permalink
fix: fetchAppServerAPiKey return value
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarenaldi committed Feb 21, 2025
1 parent 1076bb7 commit 1eca6db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/client/src/actions/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ export function removeAppAuthorizationEndpoint(
}

/**
* Fetch the server API key for an App.
* Checks if the App has a server API key allocated.
*
* The actual value is redacted for security reasons.
*
* You MUST be logged-in as Builder and be the owner of the App.
*
Expand All @@ -558,7 +560,7 @@ export function removeAppAuthorizationEndpoint(
export function fetchAppServerAPiKey(
client: SessionClient,
request: AppServerApiKeyRequest,
): ResultAsync<ServerAPIKey, UnexpectedError | UnauthenticatedError> {
): ResultAsync<string | null, UnexpectedError | UnauthenticatedError> {
return client.query(AppServerApiKeyQuery, { request });
}

Expand Down

0 comments on commit 1eca6db

Please sign in to comment.