Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aviadl committed Jan 1, 2025
1 parent 2403290 commit 6b77a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1273,9 +1273,9 @@ 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
```go
refreshJWT, err := descopeClient.Management.JWT().Impersonate(context.Background(), "impersonator id", "login id", true)
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 6b77a43

Please sign in to comment.