feat(auth): Add authorize page
This commit is contained in:
@@ -15,7 +15,7 @@ import { Separator } from "@/components/ui/separator";
|
||||
import { Spinner } from "@/components/ui/spinner";
|
||||
|
||||
import { ShieldCheck } from "lucide-react";
|
||||
import { IconExternalLink, IconHomeFilled, IconUserCircle, IconUser, IconMail, IconChevronRight, IconCheck } from "@tabler/icons-react";
|
||||
import { IconExternalLink, IconHomeFilled, IconUserCircle, IconChevronRight, IconCheck } from "@tabler/icons-react";
|
||||
|
||||
import permissions from "@/permissions.json";
|
||||
|
||||
@@ -27,6 +27,7 @@ export interface AuthorizeContainerProps {
|
||||
applicationName: string;
|
||||
applicationUrl: string;
|
||||
applicationLogo?: string;
|
||||
returnTo: string;
|
||||
}
|
||||
|
||||
export interface AuthorizeLoadingProps {
|
||||
@@ -98,18 +99,6 @@ export const AuthorizeContainer = (props: AuthorizeContainerProps) => {
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
// const handleLogout = async () => {
|
||||
// const response = await fetch("/api/logout");
|
||||
// const data = await response.json();
|
||||
// if (data.success) {
|
||||
// toast.success(data.message);
|
||||
// router.refresh();
|
||||
// } else {
|
||||
// toast.error(data.message);
|
||||
// }
|
||||
// };
|
||||
|
||||
// Get for each scope the permission name and description
|
||||
const scopePermissions = React.useMemo(() => {
|
||||
return props.scope.split(" ").map((scope) => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user