netlify / gotrue-js

JavaScript client library for GoTrue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

signup data argument is required by typescript

shallow-alchemy opened this issue ยท comments

Describe the bug
When using gotrue-js with typescript, an error occurs when following documentation for using .signup(). The docs show only two required arguments, however the final data argument is required.

To Reproduce

  1. install typescript
  2. instantiate new GoTrue object
  3. try to use .signup() with only two arguments (email, password) omitting a data object.
  4. see error

Expected behavior
The final argument is expected to be optional because 1) it is not required and 2) the documentation shows this

Desktop (please complete the following information):

  • OS: macOS
  • Browser [e.g. chrome, safari]: chromium engine 12.16.13 via electron 10.1.1

๐ŸŽ‰ This issue has been resolved in version 0.9.27 ๐ŸŽ‰

The release is available on GitHub release

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€