Json API for `request_password_reset_token` auth
Hi, sorry; I'm trying to create an endpoint for
request_password_reset_token
so that the user can send a password reset request. But the issue I'm facing seems to be that the structure isn't compatible with what the JSON API expects, and as a result, it throws an error.
I wanted to know if there's a way to do this at this stage without changing the action itself?
I saw the wrap_in_result?
option in the documentation, but I haven't been able to use it correctly I was wondering if that might solve the problem.
Error:
By the way is there any source of implementing auth for graphql and json token?
unfortunately the reset password dose not exist in https://github.com/seanchatmangpt/tunez/blob/chapter-7/lib/tunez/accounts.ex
for example, i was force to implement my multi tendency and use master email and assigned a website email
change the sign_in_with_password
to
Thank you in advance3 Replies
request_password_reset_token
does not return anything
Use the route
builder to create that route instead of post
post
expects to work against something that follows the standard JSON:API structure, but :request_password_reset_token
is a generic action that doesn't return anythingSolution
So you need to use
route ...
🥲 🥲 , after hours and wrong ai suggestions i found it
https://hexdocs.pm/ash_json_api/dsl-ashjsonapi-domain.html#examples-14
I really need some sources with ash :)) to see the code 😂