Skip to content

Commit

Permalink
fix: checking generated api key (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
iansu authored Oct 1, 2022
1 parent f9cf0b7 commit 5d9d769
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/events/http/HttpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -906,9 +906,11 @@ export default class HttpServer {
const apiKey = createApiKey()

this.#apiKeysValues = getApiKeysValues(
this.#serverless.service.provider.apiGateway?.apiKeys ?? [apiKey],
this.#serverless.service.provider.apiGateway?.apiKeys ?? [],
)

this.#apiKeysValues.push(apiKey)

log.notice(`Key with token: ${apiKey}`)
}
}
Expand Down

0 comments on commit 5d9d769

Please sign in to comment.