Add note about Oauth

This commit is contained in:
Brian Lee 2025-10-17 10:18:35 -07:00
parent 76a1f93957
commit b66ecd75bd
2 changed files with 34 additions and 29 deletions

View File

@ -150,6 +150,9 @@
Use the OAuth Login above; we request <code>scp:offline_access</code> to allow refresh without reprompting. Use the OAuth Login above; we request <code>scp:offline_access</code> to allow refresh without reprompting.
</li> </li>
</ol> </ol>
<p>
<strong>Multienvironment setup:</strong> If you deploy to multiple environments (dev, staging, production), you must register <strong>all redirect URIs</strong> in your BeatLeader OAuth application. For example: <code>http://localhost:5173/auth/beatleader/callback</code>, <code>https://staging.example.com/auth/beatleader/callback</code>, and <code>https://example.com/auth/beatleader/callback</code>. The app automatically uses the correct redirect URI based on the current environment's origin.
</p>
<h2 id="usage">How this app uses your auth</h2> <h2 id="usage">How this app uses your auth</h2>
<ul> <ul>

View File

@ -523,10 +523,8 @@
{/key} {/key}
</div> </div>
{/if} {/if}
<div class="mt-3"> <div class="mt-3 flex items-center gap-2">
<SongPlayer hash={item.hash} preferBeatLeader={true} /> <div class="w-1/2 flex flex-wrap gap-2">
</div>
<div class="mt-3 flex flex-wrap gap-2">
<a <a
class="rounded-md border border-white/10 px-2 py-1 text-xs hover:border-white/20" class="rounded-md border border-white/10 px-2 py-1 text-xs hover:border-white/20"
href={item.leaderboardId href={item.leaderboardId
@ -553,6 +551,10 @@
title="Copy !bsr" title="Copy !bsr"
>Copy !bsr</button> >Copy !bsr</button>
</div> </div>
<div class="w-1/2">
<SongPlayer hash={item.hash} preferBeatLeader={true} />
</div>
</div>
</div> </div>
</article> </article>
{/each} {/each}