Skip to content

Commit

Permalink
simplify grantType
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasridd committed Feb 19, 2024
1 parent 925925d commit 266182a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/mappers/baseClientApi/getBaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ export default (response: GetBaseClientResponse): BaseClient => {
baseClientId: response.clientId,
accessTokenValidity: response.accessTokenValidityMinutes ? response.accessTokenValidityMinutes * 60 : 0,
scopes: response.scopes ? response.scopes : [],
grantType:
snake(response.grantType) === GrantTypes.ClientCredentials
? GrantTypes.ClientCredentials
: GrantTypes.AuthorizationCode,
grantType: snake(response.grantType),
audit: response.jiraNumber ? response.jiraNumber : '',
count: 1,
clientCredentials: {
Expand Down

0 comments on commit 266182a

Please sign in to comment.