0

我正在向我的网站https://covid19-virology.netlify.app/admin添加登录表单我不确定如何使用引导表单设置 Supabase。

Github 回购https://github.com/drjoeycadieux/covid-virus

    <form>
            <div class="mb-3">
                <label for="exampleInputEmail1" class="form-label">Email address</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp">
    <div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div>
  </div>
  <div class="mb-3">
    <label for="exampleInputPassword1" class="form-label">Password</label>
    <input type="password" class="form-control" id="exampleInputPassword1">
  </div>
  <div class="mb-3 form-check">
    <input type="checkbox" class="form-check-input" id="exampleCheck1">
    <label class="form-check-label" for="exampleCheck1">Check me out</label>
  </div>
  <button type="submit" class="btn btn-primary">Submit</button>
</form>

不知道 JavaScript 代码从哪里开始https://supabase.io/docs

   <script type="text/javascript"> 
     
   const { user, session, error } = await supabase.auth.signIn({
 email: 'example@email.com',
 password: 'example-password',
});
        
   </script>
4

0 回答 0