-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: can disable new user registration at /user/login API around w3u…
…p launch by setting `NEXT_PUBLIC_W3UP_LAUNCH_LIMITED_AVAILABILITY_START` (#2324) Motivation: * https://github.com/web3-storage/secrets/issues/22 What * now that some stuff is needed as common between the two packages for api and website, I moved the `w3up-launch` module into a new package that both can depend on `@web3-storage/w3up-launch` * `@web3-storage/api` `loginOrRegister` reads env.`NEXT_PUBLIC_W3UP_LAUNCH_LIMITED_AVAILABILITY_START` and if its after that, will throw an error when it would otherwise create a new user. * website 'callback' page from magic link detects the error from POST /user/login indicating this and redirects user to `/login/signups-closed/try-w3up/`
- Loading branch information
Showing
29 changed files
with
1,071 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.