Skip to content

Commit

Permalink
Remove OAuth (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsaad committed Feb 20, 2024
1 parent 1b354d7 commit e5fdb86
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/login
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/login
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/profile
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/profile
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/profile
5 changes: 4 additions & 1 deletion app/(auth)/auth/page.tsx → app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default function AuthenticationPage() {
{/* Form */}
{isSigningUp ? <SignUpForm /> : <SignInForm />}
{/* Divider */}
{ /*
<div className="relative">
<div className="absolute inset-0 flex items-center">
<span className="w-full border-t" />
Expand All @@ -62,10 +63,12 @@ export default function AuthenticationPage() {
</div>
</div>
{/* Social Login Buttons */}
{/*
<SocialLoginButtons />
*/}
</div>
</section>
</div>
</main>
)
}
}
5 changes: 0 additions & 5 deletions app/(auth)/sign-in/[[...sign-in]]/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions app/(auth)/sign-up/[[...sign-up]]/page.tsx

This file was deleted.

Binary file added bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion components/shared/claim-username.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function ClaimUsername() {
<p className="px-2 h-9 font-mono text-base sm:text-lg flex items-center bg-secondary rounded-l-md font-medium text-foreground">marriageresu.me/@</p>
<Input className="bg-background font-mono text-base sm:text-lg h-9 border-l-0 rounded-l-none w-full md:w-56" placeholder="saad" />
</div>
<Link href="/profile" className="w-full md:w-auto">
<Link href="/login" className="w-full md:w-auto">
<Button className="flex w-full gap-2 items-center">Claim <ArrowTopRightIcon /></Button>
</Link>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/shared/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Header = () => {
<UserDropdown />
</SignedIn>
<SignedOut>
<Link href="/auth">
<Link href="/login">
<Button>Sign In</Button>
</Link>
</SignedOut>
Expand All @@ -27,4 +27,4 @@ const Header = () => {
)
}

export default Header
export default Header
4 changes: 2 additions & 2 deletions middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { authMiddleware } from "@clerk/nextjs";
// Please edit this to allow other routes to be public as needed.
// See https://clerk.com/docs/references/nextjs/auth-middleware for more information about configuring your Middleware
export default authMiddleware({
publicRoutes: ["/", "/@:username", "/auth"],
publicRoutes: ["/", "/@:username", "/login"],
});

export const config = {
matcher: ["/((?!.+\\.[\\w]+$|_next).*)", "/", "/(api|trpc)(.*)"],
};
};

0 comments on commit e5fdb86

Please sign in to comment.