Skip to content

Commit deafdc7

Browse files
committed
Fix readme
1 parent 6b77a43 commit deafdc7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,9 +1273,10 @@ if err != nil {
12731273
You can impersonate to another user
12741274
The impersonator user must have the `impersonation` permission in order for this request to work.
12751275
The response would be a refresh JWT of the impersonated user
1276-
TenantID would be the tenant to set as DCT claim, in case set
1276+
TenantID would be the tenant to set as DCT claim, in case set
1277+
customClaims - would be extra claims that are needed on the JWT
12771278
```go
1278-
refreshJWT, err := descopeClient.Management.JWT().Impersonate(context.Background(), "impersonator id", "login id", true, map[string]any{"k1":"v1", "T1"})
1279+
refreshJWT, err := descopeClient.Management.JWT().Impersonate(context.Background(), "impersonator id", "login id", true, map[string]any{"k1":"v1"}, "T1")
12791280
if err != nil {
12801281
// handle error
12811282
}

0 commit comments

Comments
 (0)