I'm getting a `:type not found in :nil` error when trying to roll my own confirm user page
Originating from this call:
It seems like it's not the right action name, even though I have:
7 Replies
I also tried a regular form with a POST action on
/auth/user/confirm_new_user
with the token, but I'm getting a crsf token missing error.confirmation isn't done by an action in your resource - its done by something internal to ash_authentication
ah okay, so I just need to
POST
to the confirm endpoint, then. But why am I getting a CSRF token error when I try this method ?it's not a POST request to the endpoint
well it is, but it should be a GET then a form submission to POST
with "token" = token as form data right ?
am I missing the docs about this ?
ok, the param name with actually
confirm
instead of token
still, I wonder how do I get docs about thisThe routes are described in
mix phx.routes
which might help, but otherwise it sounds like this is docs missing from ash authentication magic link guides. Could you open an issue?@ZachDaniel Sure Zach!
mix phx.routes
is exacly what I was looking for actually, very cool