Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aviadl committed Jan 2, 2025
1 parent 6b77a43 commit deafdc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1273,9 +1273,10 @@ if err != nil {
You can impersonate to another user
The impersonator user must have the `impersonation` permission in order for this request to work.
The response would be a refresh JWT of the impersonated user
TenantID would be the tenant to set as DCT claim, in case set
TenantID would be the tenant to set as DCT claim, in case set
customClaims - would be extra claims that are needed on the JWT
```go
refreshJWT, err := descopeClient.Management.JWT().Impersonate(context.Background(), "impersonator id", "login id", true, map[string]any{"k1":"v1", "T1"})
refreshJWT, err := descopeClient.Management.JWT().Impersonate(context.Background(), "impersonator id", "login id", true, map[string]any{"k1":"v1"}, "T1")
if err != nil {
// handle error
}
Expand Down

0 comments on commit deafdc7

Please sign in to comment.