Guardian.Plug.sign_in/2 to session storage instead of cookies?

259 Views Asked by At

During authentication, Guardian.Plug.sign_in(conn, user) is storing session token in cookies by default. Let's say i have a field that tells if the user wants to be remembered or not. If not, how can i store session token in session storage (so it gets discarded on closing browser's window) instead of cookies?

0

There are 0 best solutions below