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

Add email as a template context variable #61

Open
arshsingh opened this issue Apr 30, 2020 · 2 comments
Open

Add email as a template context variable #61

arshsingh opened this issue Apr 30, 2020 · 2 comments

Comments

@arshsingh
Copy link

I'm using this with a SPA in a browser context and need to build a url that contains all the information that will be needed to make the token obtain request (e.g: https://someapp.com/login?token=123456&[email protected])

Essentially, I want the user to be able to click on the link from the email instead of having to type the code manually.

@jaymes15
Copy link

you would need to use a custom email template.This has been explained in the readme or you can check #71 .

@nullablebool
Copy link

nullablebool commented May 5, 2022

Looking to implement the same feature, there is an undocumented PASSWORDLESS_CONTEXT_PROCESSORS which looks like the right approach. I'm simply providing the context the token object and passing that to the consuming provider. Then you can access the user and email through that.

master...nullablebool:patch-1

Just noticed how old this request is. A custom email template appears to only has access to the code, it would be helpful when adding a custom processor to know which user you're working with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants