move resource auth to auth router

This commit is contained in:
Milo Schwartz
2024-11-24 11:27:43 -05:00
parent 50e2d6721f
commit cc05baf67d
3 changed files with 15 additions and 22 deletions

View File

@@ -80,14 +80,6 @@ export default async function ResourceAuthPage(props: {
);
}
const getNumMethods = () => {
let colLength = 0;
if (authInfo.pincode) colLength++;
if (authInfo.password) colLength++;
if (authInfo.sso) colLength++;
return colLength;
};
return (
<>
<div className="w-full max-w-md">
@@ -105,7 +97,6 @@ export default async function ResourceAuthPage(props: {
queryParamName={
process.env.RESOURCE_SESSION_QUERY_PARAM_NAME!
}
numMethods={getNumMethods()}
/>
</div>
</>