Skip to content

Commit

Permalink
fix: add docs for callback and authorize
Browse files Browse the repository at this point in the history
and trigger new version
  • Loading branch information
awalias authored Sep 29, 2020
1 parent a7d294f commit 83ca514
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,24 @@ GoTrue exposes the following endpoints:
This will revoke all refresh tokens for the user. Remember that the JWT tokens
will still be valid for stateless auth until they expires.


* **GET /authorize**

Get access_token from external oauth provider

query params:
```
provider=google | bitbucket | github | gitlab
```

Redirects to provider and then to `/callback`

* **GET /callback**

External provider should redirect to here

Redirects to `<GOTRUE_SITE_URL>#access_token=<access_token>&refresh_token=<refresh_token>&expires_in=3600&provider=<provider_name>`

## Pre-built

- [Docker](https://hub.docker.com/repository/docker/supabase/gotrue)
Expand Down

0 comments on commit 83ca514

Please sign in to comment.