Web2 authentication
This section describes the Web2 login script (a.k.a. Wallet activation script) which can be found here
This script receives two parameters:
- Wallet configuration. In includes beacon token policy ID and token name; user ID record name from JWT; and fee address and amount.
- User ID (Gmail-based email address in our case)
Proof bytes and some other information should be provided as script redeemer of the type Web2Auth.
This script acts as a minting policy for a token associated with the wallet. The presence of this token means that the wallet has been activated.