Skip to content

Instantly share code, notes, and snippets.

@tolgaOzen
Created March 2, 2022 15:52
Show Gist options
  • Save tolgaOzen/5d1ad95e8411955c73a2d710631ee0e2 to your computer and use it in GitHub Desktop.
Save tolgaOzen/5d1ad95e8411955c73a2d710631ee0e2 to your computer and use it in GitHub Desktop.
check authorize
response, err := client.User.IsAuthorized(user.IsAuthorized{
PolicyName: "task-edit-policy",
UserID: "1",
ResourceID: permify.String("1"),
ResourceType: permify.String("task"),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment