Skip to content

Commit

Permalink
refactor: drop oauth_ (#637)
Browse files Browse the repository at this point in the history
change `oauth_pkce` to be just `pkce` so that magic link, recovery, etc
can make use of the same route

Upd: realized that there's still a need to encode what kind of flow
resulted in the token in order for `issueRefreshToken` to track where
the token came from
  • Loading branch information
J0 committed Apr 3, 2023
1 parent 09b60e5 commit 54bd8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export default class GoTrueClient {
const { data, error } = await _request(
this.fetch,
'POST',
`${this.url}/token?grant_type=oauth_pkce`,
`${this.url}/token?grant_type=pkce`,
{
headers: this.headers,
body: {
Expand Down

0 comments on commit 54bd8de

Please sign in to comment.