Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCaptcha support #38

Open
dukesx opened this issue Oct 4, 2022 · 9 comments
Open

HCaptcha support #38

dukesx opened this issue Oct 4, 2022 · 9 comments
Labels
enhancement New feature or request

Comments

@dukesx
Copy link

dukesx commented Oct 4, 2022

Feature request

Is your feature request related to a problem? Please describe.

Yes, For Combatting spam. Would love to have H-Captcha Intergrated directly inside auth ui.

Describe the solution you'd like

1, Just add it as dependency or let us specify a "React Node" that we can pass as a component so that before the FORM SUBMIT button, there is a captcha,
2, Allow us to specify the verified token , which can then be taken as a state inside Auth UI so that depending on verification, the state changes and behaves accordingly (to give error or to allow auth request)

Since H-captcha has quite the presence inside the docs and Supabase even has the the server verifying it (as per dashboard auth option), i think this is a very legitimate request,

Describe alternatives you've considered

Imperfect Workarounds

@dukesx dukesx added the enhancement New feature or request label Oct 4, 2022
@Charizard13
Copy link

Really important for us we use this

@antonioglass
Copy link

Are there any updates?

@jaxony
Copy link

jaxony commented Nov 29, 2023

It would be amazing if HCaptcha could be supported inside AuthUI. At the moment, the best option for me is to copy the code / fork, which isn't ideal.

@hexrw
Copy link

hexrw commented Dec 28, 2023

How is this not supported yet??

@hexrw
Copy link

hexrw commented May 13, 2024

If there still isn't a response soon I'm taking this on

@Charizard13
Copy link

If there still isn't a response soon I'm taking this on

I want to help you add more features to this @hexrw

@hexrw
Copy link

hexrw commented May 15, 2024

If there still isn't a response soon I'm taking this on

I want to help you add more features to this @hexrw

Reach out to me at [email protected]

@gururise
Copy link

gururise commented Jul 7, 2024

@Charizard13 Any progress?

@hexrw
Copy link

hexrw commented Jul 8, 2024

I'm taking this on. I will be making a fork that will utilize the native custom elements, I want to take this project to the direction Swiper.js is taking for example with their Swiper elements library, not focusing on any particular frameworks but instead giving everyone a solid vanilla solution. I'm going to actively work on this fork and hopefully it will make it's way here, into supabase-community. I will absolutely maintain the current APIs and everything so that little change is required to migrate from the current libraries. Using the library will be as simple as this (approximately) (Vue.js example):

<script setup>
  // Import predefined theme
  import { ThemeSupa } from '@supabase/auth-ui-shared'
  import { createClient } from '@supabase/supabase-js'

  import { register } from '@supabase-community/auth-elements'

  const supabaseClient = createClient(
    '<INSERT PROJECT URL>',
    '<INSERT PROJECT ANON API KEY>'
  )
  
 onMounted(() => register())
</script>

<template>
  <sb-auth
    :supabaseClient="supabaseClient"
    :appearance="{
      theme: ThemeSupa
    }"
  ></sb-auth>
</template>

@Charizard13 @gururise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants