• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / gotrue / 5460275786
65%

Build:
DEFAULT BRANCH: master
Ran 05 Jul 2023 03:51AM UTC
Jobs 1
Files 108
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Jul 2023 03:44AM UTC coverage: 65.745% (+0.08%) from 65.67%
5460275786

push

github

web-flow
feat: allow `POST /verify` to accept a token hash (#1165)

## What kind of change does this PR introduce?
* To enable server-side redirection via an email link, we need some way
to return the session in the response body rather than in the query
fragments (`GET /verify`) because the fragments can't be parsed on the
server-side.

* By allowing `POST /verify` to accept just a token hash, a developer
would be able to set the verification URL in their email template to
point to their own endpoint
(`https://myapp.com/confirm-signup?token_hash=XXX&type=signup`) and
parse the `token_hash` param before calling `POST /verify` with the
following:

```bash
curl -X POST 'http://localhost:9999/verify' -H 'Content-Type: application/json' \ 
-d '{"token_hash": "my_token_hash", "type": "signup" }'
```

If the token hash is valid and the request is successful, this would
return the verified user's session in the response and the developer can
subsequently handle any redirection on their own.

---------

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>

7134 of 10851 relevant lines covered (65.75%)

49.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5460275786.1 05 Jul 2023 03:51AM UTC 0
65.75
GitHub Action Run
Source Files on build 5460275786
Detailed source file information is not available for this build.
  • Back to Repo
  • e9ab5555 on github
  • Prev Build on master (#5454657256)
  • Next Build on master (#5462659052)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc