Skip to content

Commit

Permalink
fix: Fix JWT expiration time setting in OAuth flow (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzeINGH authored Jan 15, 2025
1 parent 50d5c42 commit 23bd27b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,10 @@ func (c *JWTOAuthClient) GetAccessToken(ctx context.Context, opts *GetJWTAccessT
Type: GrantTypeJWTCode,
Secret: jwtCode,
Request: &getAccessTokenReq{
ClientID: c.clientID,
GrantType: string(GrantTypeJWTCode),
Scope: opts.Scope,
ClientID: c.clientID,
GrantType: string(GrantTypeJWTCode),
DurationSeconds: ttl,
Scope: opts.Scope,
},
}
return c.getAccessToken(ctx, req)
Expand Down

0 comments on commit 23bd27b

Please sign in to comment.