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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Did you have any luck with this? It seems inefficient that unauthenticated users (or users that have had their session time-out) keep trying to reconnect.</p>
<p>I agree that there should be a way to prevent the socket from being opened in a way that lets the client know it does not need to keep trying.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="174515" 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/check-for-403-response-on-socket-client/1986/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-174515" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="174515"
                     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 #11"></div>
  </section>
</div>
    <div class="postbit" id="176761" data-post-id="176761">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>to reproduce the problem in a development environment</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">diff --git a/config/dev.exs b/config/dev.exs
index 7feeef0..17e8dfd 100644
--- a/config/dev.exs
+++ b/config/dev.exs
@@ -12,0 +13,4 @@ config :myapp, Myapp.Repo,
+secret_key_base =
+  System.get_env("SECRET_KEY_BASE") ||
+    :crypto.strong_rand_bytes(64) |&gt; Base.encode64() |&gt; binary_part(0, 64)
+
@@ -22 +26 @@ config :myapp, MyappWeb.Endpoint,
-  code_reloader: true,
+  code_reloader: false,
@@ -23,0 +28 @@ config :myapp, MyappWeb.Endpoint,
+  secret_key_base: secret_key_base,
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="176761" 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/check-for-403-response-on-socket-client/1986/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-176761" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="176761"
                     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 #12"></div>
  </section>
</div>
    <div class="postbit" id="176983" data-post-id="176983">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Just my 2c, but not everyone shares this sentiment. JWT are often used for much longer durations.</p>
<p>A quite common OAuth API convention uses a 60 min JWT expiration for authorization, with a much longer lived refresh token (which is also a JWT).</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="176983" 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/check-for-403-response-on-socket-client/1986/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-176983" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="176983"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>