# Supabase | Sign In | One-Time Password | hCaptcha — I can't use it in workflow weweb

**URL:** https://community.weweb.io/t/supabase-sign-in-one-time-password-hcaptcha-i-cant-use-it-in-workflow-weweb/7535
**Category:** How do I?
**Created:** [March 12, 2024, 1:50pm UTC](https://community.weweb.io/t/supabase-sign-in-one-time-password-hcaptcha-i-cant-use-it-in-workflow-weweb/7535 "2024-03-12T13:50:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![se.belobrov](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@se.belobrov](https://community.weweb.io/u/se.belobrov)
#### Post date: [March 12, 2024, 1:50pm UTC](https://community.weweb.io/t/supabase-sign-in-one-time-password-hcaptcha-i-cant-use-it-in-workflow-weweb/7535/1 "2024-03-12T13:50:02Z")

</div>

![tg_image_4009163133](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/cf67f0bfd8dc7a657ddf87d76f77a9ecec31408f.jpeg)

I need to implement Auth supabase with OTP. Does anyone know a way to get an hcaptcha token? I pasted it into the page, the verification is completed correctly, but I can’t find a way to transfer the token that hcaptcha receives after verification to Supabase.

---

<div class="post-metadata">

### Author: ![se.belobrov](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@se.belobrov](https://community.weweb.io/u/se.belobrov)
#### Post date: [March 12, 2024, 3:17pm UTC](https://community.weweb.io/t/supabase-sign-in-one-time-password-hcaptcha-i-cant-use-it-in-workflow-weweb/7535/2 "2024-03-12T15:17:54Z")

</div>

Solved, thanks ChatGPT.

```auto
return (() => {
    const iframe = document.querySelector('.h-captcha iframe');
    return iframe ? iframe.getAttribute('data-hcaptcha-response') : null;
})();

```

But a second problem arises during verification

name: “TypeError”  
stack: "TypeError: Cannot read properties of null (reading ‘map’) at Object.getUserRoles  
message: “Cannot read properties of null (reading ‘map’)”

Can anyone help?

---

<div class="post-metadata">

### Author: ![se.belobrov](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@se.belobrov](https://community.weweb.io/u/se.belobrov)
#### Post date: [March 12, 2024, 9:47pm UTC](https://community.weweb.io/t/supabase-sign-in-one-time-password-hcaptcha-i-cant-use-it-in-workflow-weweb/7535/3 "2024-03-12T21:47:03Z")

</div>

The second problem was solved by connecting roles via Auth supabase.
