Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Request Code on EMail and Login using Email and TOTP login #197

Merged
merged 10 commits into from
Jan 19, 2024

Conversation

eshanvaid
Copy link
Contributor

This PR enhances the user login process by introducing an email-based code request and login mechanism. Upon requesting an email code, the Galoy backend responds with a unique email-login-id after sending the code to the specified email address. In this update, we store this email-login-id in the .galoy-cli folder. Subsequently, when a user attempts to log in using an email code, they can simply use the --email flag in the command. The relevant email-login-id will be automatically read from the file, simplifying the login process.

Usage-

  1. To request a code:
galoy-cli request-code --email <EMAIL>
  1. To perform a login:
galoy-cli login --email --code <CODE-RECEIVED-ON-MAIL>

Note that for the email-based login process using the galoy-cli, it's essential to request the code using the galoy-cli only.

@eshanvaid eshanvaid added the enhancement New feature or request label Aug 13, 2023
@eshanvaid eshanvaid requested a review from sandipndev August 13, 2023 20:23
@eshanvaid eshanvaid self-assigned this Aug 13, 2023
@eshanvaid eshanvaid changed the title feat: request email code and login feat: Request Code on EMail and Login using Email Aug 13, 2023
@siddhart1o1 siddhart1o1 assigned siddhart1o1 and unassigned eshanvaid Jan 17, 2024
sandipndev
sandipndev previously approved these changes Jan 19, 2024
@siddhart1o1 siddhart1o1 changed the title feat: Request Code on EMail and Login using Email feat: Request Code on EMail and Login using Email and TOTP login Jan 19, 2024
@siddhart1o1 siddhart1o1 merged commit 4e9bfcb into main Jan 19, 2024
4 checks passed
@siddhart1o1 siddhart1o1 deleted the login-using-email branch January 19, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants