<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="151486" data-post-id="151486">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="minhkhiemm" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/minhkhiemm/120/17931_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  minhkhiemm
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Many thanks <a class="mention" href="/u/danschultzer" rel="nofollow">@danschultzer</a>!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="151486" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/163">Post #162</a>
	                </div>
	            </div>
              <div id="likers-container-151486" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="151486"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #162"></div>
  </section>
</div>
    <div class="postbit" id="152046" data-post-id="152046">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="why" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  why
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi,</p>
<p>I have been comparing two auth packages lately, ueberauth and pow. Both look great in their own way, from my beginner’s perspective.</p>
<p>The way I see it is that with</p>
<ul>
<li>
<p>ueberauth I get a solution that seems more battle-tested (12k downloads last 7 days), but I have to roll quite a few things around it myself (password reset, email confirmation, templates, etc), and with</p>
</li>
<li>
<p>pow I get a package that seems less battle tested (2k downloads last 7 days), but I don’t have to roll much myself.</p>
</li>
</ul>
<p>Feels like a difficult choice. In general I would go with the the more battle-tested solution when it comes to security, but rolling my own security-related elements as a newbie is probably also not the best idea…</p>
<p>Any guidance from the community on how to think about the security of different auth solutions?</p>
<p>Thank you.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="152046" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/164">Post #163</a>
	                </div>
	            </div>
              <div id="likers-container-152046" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="152046"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #163"></div>
  </section>
</div>
    <div class="postbit" id="152049" data-post-id="152049">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Kurisu" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Kurisu/120/14820_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Kurisu
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It’s not about security, but I just want to add that Pow has some more interresting extensions like PowAssent:</p>
<aside class="quote quote-modified" data-post="1" data-topic="20521">
  <div class="title">
    <div class="quote-controls"></div>
    <img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/danschultzer/48/4942_2.png" class="avatar">
    <div class="quote-title__text-content">
      <a href="https://forum.elixirforum.com/t/powassent-instant-multi-provider-support-for-pow/20521" rel="nofollow">PowAssent: Instant multi-provider support for Pow</a> <a class="badge-category__wrapper " href="/c/news/announcing/159" rel="nofollow"><span data-category-id="159" style="--category-badge-color: #d2407f; --category-badge-text-color: #FFFFFF; --parent-category-badge-color: #d2407f;" data-parent-category-id="158" data-drop-close="true" class="badge-category --style-square --has-parent"><span class="badge-category__name">Announcing</span></span></a>
    </div>
  </div>
  <blockquote>
    Multi-provider support for <a href="https://github.com/danschultzer/pow_assent" rel="noopener nofollow ugc">Pow</a> with out-of-the-box support for many providers. I finally got a 0.1.0 release up today, and I hope some of you will find it useful <img width="20" height="20" src="https://forum.elixirforum.com/images/emoji/apple/smile.png?v=15" title="smile" alt="smile" class="emoji"> 
Please let me know if there’s anything that can be improved in the docs or with features. Thanks! 
<a href="https://github.com/danschultzer/pow_assent" rel="noopener nofollow ugc">https://github.com/danschultzer/pow_assent</a> 
<a href="https://hexdocs.pm/pow_assent/" rel="noopener nofollow ugc">https://hexdocs.pm/pow_assent/</a> 

Pow thread: <a href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807" class="inline-onebox-loading" rel="nofollow">https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807</a> 

<a name="p-118062-powassent-details-1" class="anchor" href="#p-118062-powassent-details-1" aria-label="Heading link" rel="nofollow"></a>PowAssent details
<a name="p-118062-base-strategies-2" class="anchor" href="#p-118062-base-strategies-2" aria-label="Heading link" rel="nofollow"></a>Base strate…
  </blockquote>
</aside>

<p>I didn’t already try it but I think it’s worth to be mentioned also.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="152049" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/165">Post #164</a>
	                </div>
	            </div>
              <div id="likers-container-152049" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="152049"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #164"></div>
  </section>
</div>
    <div class="postbit" id="152052" data-post-id="152052">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Schultzer" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Schultzer/120/4339_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Schultzer
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>How can you even measure that with the number of downloads?</p>
<p>Given that ueberauth existing longer than pow.</p>
<p>You have to look at how many issues there has been with ueberauth vs pow in a compareable timeframe (which is not easy to do).</p>
<p>You should also do a secrurity review of both packages to really be able to decide.</p>
<p>I just restate this, the number of download does not equal something being battle tested nor that it’s secured.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="152052" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/166">Post #165</a>
	                </div>
	            </div>
              <div id="likers-container-152052" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="152052"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #165"></div>
  </section>
</div>
    <div class="postbit" id="152057" data-post-id="152057">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="why" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  why
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi <a class="mention" href="/u/schultzer" rel="nofollow">@Schultzer</a>, I completely agree with you. Sorry, I didn’t realize there are two Schultzers on this thread, so I just edited this post to untangle a bit <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<p><a class="mention" href="/u/danschultzer" rel="nofollow">@danschultzer</a>: Please forgive the oversimplification, I didn’t mean to take anything away from pow. It looks like a really great solution (I have spent a lot of time with the docs and on the powauth website), and you are an amazingly responsive project owner, and I am very tempted to make it my auth solution…</p>
<p>I actually looked at the issue lists of both solutions in detail (and all the other ones i could find as well), plus pull requests, etc. I’m also aware that pow is younger than ueberauth and of course pow’s 2k downloads per 7 days is an impressive feat by itself.</p>
<p>Might you maybe have some advice for me how to get comfortable with the security aspects of an auth solution (particularly for somebody who is not very experienced)?</p>
<p>Again, thank you for creating pow and the generous support you have provided around it here and on github.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="152057" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/167">Post #166</a>
	                </div>
	            </div>
              <div id="likers-container-152057" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="152057"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #166"></div>
  </section>
</div>
    <div class="postbit" id="152063" data-post-id="152063">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="danschultzer" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/danschultzer/120/4942_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  danschultzer
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Pow Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="why" data-post="164" data-topic="15807">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/w/4bbf92/48.png" class="avatar"> why:</div>
<blockquote>
<p>In general I would go with the the more battle-tested solution when it comes to security</p>
</blockquote>
</aside>
<p>Yeah, that’s what I would try to figure out too, but as mentioned by <a class="mention" href="/u/schultzer" rel="nofollow">@Schultzer</a>, download numbers aren’t a great measure for how battle tested something is. Pow is used in many production grade apps, and businesses does depend on it. The same is true for Ueberauth. Beyond that, I think it becomes fuzzy which one is the better choice. You should really just focus on which one solves your problem better.</p>
<p>Also, <a href="https://github.com/ueberauth/guardian" rel="noopener nofollow ugc">Guardian</a> is the better comparison with Pow. PowAssent (or Assent) is the alternative to Ueberauth.</p>
<aside class="quote no-group" data-username="why" data-post="164" data-topic="15807">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/w/4bbf92/48.png" class="avatar"> why:</div>
<blockquote>
<p>but rolling my own security-related elements as a newbie is probably also not the best idea…</p>
</blockquote>
</aside>
<p>Yup, don’t roll your own. I’ve tried to make it easy to both get started and to move away from Pow if you ever decide it’s not the right solution (or partially add in your own logic). So if Pow solves the problem better for you now, I would recommend going with it, and then you can switch over if you don’t find Pow to be the right choice after all.</p>
<aside class="quote no-group" data-username="why" data-post="164" data-topic="15807">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/w/4bbf92/48.png" class="avatar"> why:</div>
<blockquote>
<p>Any guidance from the community on how to think about the security of different auth solutions?</p>
</blockquote>
</aside>
<p>The best would be if the library is regularly audited. I have some plans for that with Pow, but for now I don’t think any auth solutions in Elixir can be considered a secure choice, it’s just as good as it gets.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="152063" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/168">Post #167</a>
	                </div>
	            </div>
              <div id="likers-container-152063" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="152063"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #167"></div>
  </section>
</div>
    <div class="postbit" id="152073" data-post-id="152073">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="OvermindDL1" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/OvermindDL1/120/2677_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  OvermindDL1
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="danschultzer" data-post="168" data-topic="15807">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/danschultzer/48/4942_2.png" class="avatar"> danschultzer:</div>
<blockquote>
<p>Also, <a href="https://github.com/ueberauth/guardian" rel="noopener nofollow ugc">Guardian</a> is the better comparison with Pow. PowAssent (or Assent) is the alternative to Ueberauth.</p>
</blockquote>
</aside>
<p>It’s definitely not.  Guardian is for server-to-server single-access token stuff, it is <em>not</em> for session tokens or handling of that in any way of the sort.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="152073" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/169">Post #168</a>
	                </div>
	            </div>
              <div id="likers-container-152073" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="152073"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #168"></div>
  </section>
</div>
    <div class="postbit" id="152076" data-post-id="152076">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="danschultzer" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/danschultzer/120/4942_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  danschultzer
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Pow Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="OvermindDL1" data-post="169" data-topic="15807">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/48/2677_2.png" class="avatar"> OvermindDL1:</div>
<blockquote>
<p>It’s definitely not. Guardian is for server-to-server single-access token stuff, it is <em>not</em> for session tokens or handling of that in any way of the sort.</p>
</blockquote>
</aside>
<p>Oh, hmm, I always thought Guardian was built for that per the docs and use cases I’ve seen? Like this: <a href="https://hexdocs.pm/guardian/tutorial-start.html" class="inline-onebox" rel="noopener nofollow ugc">Getting Started with Guardian — Guardian v2.4.0</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="152076" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/170">Post #169</a>
	                </div>
	            </div>
              <div id="likers-container-152076" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="152076"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #169"></div>
  </section>
</div>
    <div class="postbit" id="152078" data-post-id="152078">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="OvermindDL1" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/OvermindDL1/120/2677_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  OvermindDL1
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Nope, Guardian is for JWT style uses.  Phoenix.Token is what you want for any kind of token signing and/or encryption.  It’s faster, more compact (so you can store more data in it), etc… etc…</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="152078" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/171">Post #170</a>
	                </div>
	            </div>
              <div id="likers-container-152078" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="152078"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #170"></div>
  </section>
</div>
    <div class="postbit" id="152142" data-post-id="152142">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="dcrck" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dcrck/120/17170_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  dcrck
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi <a class="mention" href="/u/danschultzer" rel="nofollow">@danschultzer</a>, I’m using the Pow library and I’m finding it really easy to use so far. One problem: my application updates the user record, and I try and update the current user, but on redirect it does not keep my changes! Here’s what I’m basically trying to do in my controller:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def callback(...) do
    #...
    case Accounts.update_customer(user, subscription) do
      { :ok, new_user } -&gt;
        conn
        |&gt; update_current_user(new_user)
        |&gt; put_flash(:info, "Successfully subscribed to #{subscription["plan_id"]}!")
        |&gt; redirect(to: "/")
      { :error, _ } -&gt;
        conn
        |&gt; put_flash(:error, "Subscription failed")
        |&gt; redirect(to: "/")
    end
end

defp update_current_user(conn, user) do
    config = Pow.Plug.fetch_config(conn)
    Pow.Plug.assign_current_user(conn, user, config)
end
</code></pre>
<p>Any ideas what I’m doing wrong? I think this should be the right way to do it…</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="152142" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pow-robust-modular-extendable-user-authentication-and-management-system/15807/172">Post #171</a>
	                </div>
	            </div>
              <div id="likers-container-152142" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="152142"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #171"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/15807/load_more?page=18">Load more posts (71 remaining)</a>
</div></template></turbo-stream>