https://github.com/arindam200/permit-supabase-integration
https://github.com/arindam200/permit-supabase-integration
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arindam200/permit-supabase-integration
- Owner: Arindam200
- Created: 2024-05-19T13:59:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-20T09:14:59.000Z (about 1 year ago)
- Last Synced: 2024-12-29T15:13:47.876Z (6 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### endpoints :
1 )
- Req : Post ,
- action : creates a user in the permit directory
- url : https://asnvuyznngsplkniggui.supabase.co/functions/v1/createUser
- Body:
```
{
id : "user id that will be used to uniquely identify the user"
defaultRole : "the default role that the users will be assigned like Admin or Employee or Viewer",
tenant : "the tenant under which the user will be added",
}
```- example :
2 )
- Req : Post ,
- action : checks for user permissions in permit
- url : https://asnvuyznngsplkniggui.supabase.co/functions/v1/check-permission,
- Body :
```
{
user : "user id that will be used to uniquely identify the user",
action: "operation which the user wants to perform",
resource: {
type: "type or resource name",
teanant : "tenant name under which the user exists "
}
context: "extra information"
}
```
- example :
