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

Question about Passwordless Plugin's Functionality!!! #35

Open
geet-h17 opened this issue Oct 4, 2024 · 2 comments
Open

Question about Passwordless Plugin's Functionality!!! #35

geet-h17 opened this issue Oct 4, 2024 · 2 comments

Comments

@geet-h17
Copy link

geet-h17 commented Oct 4, 2024

I am trying to understand if I might be misunderstanding how the passwordless plugin works or if it’s behaving as expected.

When I make a POST request to /api/passwordless/send-link, it successfully sends an email with a link. However, the URL provided in the email is not accessible via a browser.I can still GET operations, JWT token gen via CLI, and I can see a new user inside USER to the Collection Types with their TOKEN as a separate type tooo.. and related details.

What I initially expected was that, when I click invite new user in the Administration panel (GUI), it generates a URL that I could share with the user. When the user accesses this URL via a browser, they would be presented with a registration portal where they can complete their account setup. I thought the plugin would automatically send this link to the user via email.

Can someone clarify the exact use case of the plugin and confirm if it works this way or differently?

@kucherenko
Copy link
Owner

Hi! Thank you for the question!

The passwordless plugin gives ability to implement passwordless login for your site, not for admin panel of strapi.

In URL you can find token which you should provide for the following call:

GET /api/passwordless/login?loginToken={tokenFromEmail}

After the call you will receive JWT token

@geet-h17
Copy link
Author

geet-h17 commented Oct 5, 2024

Heyy andrey thank you for the responce, My question was ur JWT , reqs all are working fine in the cli but i cant find a place where that user can access the portal , yes on cli he can use the token from mail and get JWTs and its being shown on Content Manager , But where will the user access the portal ?? The email link on browsers gives this responce

{
  "data": null,
  "error": {
    "status": 404,
    "name": "NotFoundError",
    "message": "Not Found",
    "details": {

    }
  }
}

Even though on CLI i can use that token to create JWTs...

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

2 participants