Add Roblox login button to Login page
cgen-b3801e07029349ceb0a5543e1081d8a0
This commit is contained in:
parent
7710d50479
commit
737b1b4430
1 changed files with 13 additions and 0 deletions
|
|
@ -339,6 +339,19 @@ export default function Login() {
|
|||
<Mail className="h-4 w-4 mr-2" />
|
||||
Continue with Google
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
className="w-full hover-lift interactive-scale"
|
||||
onClick={() => {
|
||||
const u = new URL(window.location.origin + "/api/roblox/oauth/start");
|
||||
const next = new URLSearchParams(window.location.search).get("next");
|
||||
if (next && next.startsWith("/")) u.searchParams.set("state", next);
|
||||
window.location.href = u.toString();
|
||||
}}
|
||||
>
|
||||
<Sparkles className="h-4 w-4 mr-2" />
|
||||
Continue with Roblox
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="relative">
|
||||
|
|
|
|||
Loading…
Reference in a new issue