- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally
- When only changing documentation, include
[ci skip]in the commit description - Consider starting the commit message with an applicable emoji:
- 🎨
:art:when improving the format/structure of the code
- 🎨
- 🐎
:racehorse:when improving performance
This file contains hidden or 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
| defmodule PetalProWeb.PasswordlessAuthLive do | |
| @moduledoc """ | |
| This module is used to handle the passwordless auth flow. | |
| A user enters their email and submits. If no user exists for the user, then one is created with a random password. | |
| A user will fill in their name at the onboarding screen. | |
| Process: | |
| 1: User submits email. | |
| 2: Find or create a user, set it as assigns.auth_user | |
| 3: Push patch to /passwordless/sign-in-code/:hashed_user_id |
Instructions from the following issue: ueberauth/guardian#136
This is what I did to generate a password protected JWK file (which contains the generated key):
mix phoenix.gen.secret
touch .jwk_file
The first line just generates a secret I'm using as a password. And .jwk_file is the file to store