// "use client" // // import {useSearchParams} from "next/navigation" // // enum Error { // Configuration = "Configuration", // } // // const errorMap = { // [Error.Configuration]: ( //

// There was a problem when trying to authenticate. Please contact us if this // error persists. Unique error code:{" "} // Configuration //

// ), // } // // export default function AuthErrorPage() { // const search = useSearchParams() // const error = search.get("error") as Error // // return ( //
// //
// Something went wrong //
//
// {errorMap[error] || "Please contact us if this error persists."} //
//
//
// ) // } "use client" import { useSearchParams } from "next/navigation" import React, { Suspense } from "react" enum Error { Configuration = "Configuration", } const errorMap = { [Error.Configuration]: (

There was a problem when trying to authenticate. Please contact us if this error persists. Unique error code:{" "} Configuration

), } function AuthErrorPageContent() { const search = useSearchParams() const error = search.get("error") as Error return (
Something went wrong
{errorMap[error] || "Please contact us if this error persists."}
) } export default function AuthErrorPage() { return ( Loading...}> ) }