hassamali
i tried to register with pow route its working but when i am trying to sign out with pow session with method delete its not working and complaining
no route found for GET /session (QazalbashWeb.Router)
with the pow and session these are only available routes
pow_session_path GET /session/new Pow.Phoenix.SessionController :new
pow_session_path POST /session Pow.Phoenix.SessionController :create
pow_session_path DELETE /session Pow.Phoenix.SessionController :delete
What i am doing on the front-end is this, Register is working fine but not sign out
<%= link "Sign Out", to: Routes.pow_session_path(@conn, :delete), method: :delete %>
<%= link "Register", to: Routes.pow_registration_path(@conn, :new) %>
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Hello,
I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter).
The diffic...
New
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
Other Trending Topics
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Aludel - LLM Evaluation Workbench
Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
Latest Phoenix Threads
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 7- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
sfusato
It’s not complaining about the sign out, but rather about where you are redirecting after it.
How does your
after_sign_out_pathlook like?hassamali
there is no after sign out path its a library + fresh installation of the project it will redirect it to the homepage after sign out, but i checked the session its not signed out user is still sign in
BobbyMcWho
What does your router.ex look like?
wowlixir
I’m having the same issue, except the behavior isn’t always the same. Sometimes it redirects to
/, sometimes to/session/new, and sometimes to/session. When it redirects to/sessionthe error appears and signing out fails. In other redirections signing out succeeds.My
):
router.ex(I’d like to take this opportunity to ask if there’s anything I can improve on this filehassamali
Make sure that you got
import "phoenix_html"in your JS, and restart the server if necessary. This is just a default Phoenix HTML anchor link, and will work as long as the JS is enabled andpriv/static/phoenix_html.jshas been loaded into your build tools.wowlixir
Hmm, how do I know if that is the case? I just checked and I do have
import "phoenix_html"in myapp.js(which is loaded in my layout template file), as well as"dependencies": { "phoenix": "file:../deps/phoenix", "phoenix_html": "file:../deps/phoenix_html" }in mypackage.json, but I don’t seephoenix_html.jsin mypriv/static.Edit: Oh, if you mean
deps/phoenix_html/priv/static/phoenix_html.js, then yes, it was already there.joe
For me the problem originated in having a PWA. Somehow the POST requests were transformed to GET requests because it was trying to open them in the other (native) app. Unfortunately that behaviour is only present if firefox is my default browser on Android. So the only workaround I found was to make Chrome the default browser again.