-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
π Overview
Implement the university login flow in the frontend by integrating the required authentication endpoints. This will enhance the user login experience by validating credentials, OTP, and wallet connection.
π οΈ Detailed Requirements
-
Login Flow (/login route):
- Use the following endpoints:
- Login with Password: Swagger Reference
- Send OTP: Swagger Reference
- On successful login, transition the user to the OTP verification step.
- Use the following endpoints:
-
OTP Verification (/otp route):
- Validate the OTP using the following endpoint:
- Verify OTP: Swagger Reference
- Implement a mechanism to handle OTP errors gracefully.
- Validate the OTP using the following endpoint:
-
Resend OTP:
- Provide functionality to resend the OTP if required using the endpoint:
- Resend OTP: Swagger Reference
- Provide functionality to resend the OTP if required using the endpoint:
-
Wallet Verification (/verify route):
- After OTP validation, require the user to connect their wallet to fully validate the login using the endpoint:
- Login with Wallet: Swagger Reference
- After OTP validation, require the user to connect their wallet to fully validate the login using the endpoint:
π§ Technical Considerations
- Routing: Ensure the routes (/login, /otp, /verify) are correctly set up and transitions between them are smooth.
- Error Handling: Implement proper error handling and user notifications for each authentication step.
- State Management: Maintain the state between steps (password login, OTP, and wallet connection) to ensure a secure and seamless flow.
- Security: Ensure secure transmission of data when interacting with the API endpoints.
π Additional Resources
For more context on how Certiva manages authentication and user flows, please refer to the README. ππ
Let's ensure this integration is robust and user-friendly! π
Reactions are currently unavailable