mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Remove some commented code
This commit is contained in:
parent
dd4eaf507b
commit
c0d5166e8c
@ -5,6 +5,4 @@ import CustomOAuthSignIn from "./custom-oauth";
|
||||
|
||||
export default function Page() {
|
||||
return <SignIn fullPage redirectUrl={stackServerApp.urls.home} />;
|
||||
// return <CustomCredentialSignIn />;
|
||||
// return <CustomOAuthSignIn />;
|
||||
}
|
||||
|
||||
@ -1,33 +1,8 @@
|
||||
/**
|
||||
* Creating a sidebar enables you to:
|
||||
- create an ordered group of docs
|
||||
- render a sidebar for each doc of that group
|
||||
- provide next/previous navigation
|
||||
|
||||
The sidebars can be generated from the filesystem, or explicitly defined here.
|
||||
|
||||
Create as many sidebars as you want.
|
||||
*/
|
||||
|
||||
// @ts-check
|
||||
|
||||
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
||||
const sidebars = {
|
||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
||||
|
||||
// But you can create a sidebar manually
|
||||
/*
|
||||
tutorialSidebar: [
|
||||
'intro',
|
||||
'hello',
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Tutorial',
|
||||
items: ['tutorial-basics/create-a-document'],
|
||||
},
|
||||
],
|
||||
*/
|
||||
};
|
||||
|
||||
export default sidebars;
|
||||
|
||||
@ -23,10 +23,3 @@ html[data-theme='dark'] {
|
||||
.prism-code {
|
||||
background-color: rgb(15,23,42,50) !important;
|
||||
}
|
||||
|
||||
/* .navbar {
|
||||
border-bottom: 1px solid #151515;
|
||||
padding: 0px;
|
||||
height: 0px;
|
||||
visibility: hidden;
|
||||
} */
|
||||
@ -120,8 +120,6 @@ export function Sidebar(props : SheetProps & {
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
>
|
||||
{/* <SidebarHeader /> */}
|
||||
|
||||
<Stack sx={{ marginLeft: 2, justifyContent: 'center', height: headerHeight - 1 }}>
|
||||
<Logo full height={24} href="/projects" />
|
||||
</Stack>
|
||||
|
||||
@ -143,21 +143,7 @@ export class OauthModel implements AuthorizationCodeModel {
|
||||
}
|
||||
|
||||
async revokeToken(token: RefreshToken): Promise<boolean> {
|
||||
// No refreshToken rotation for now
|
||||
// try{
|
||||
// const deletedToken = await prismaClient.projectUserRefreshToken.delete({
|
||||
// where: {
|
||||
// refreshToken: token.refreshToken
|
||||
// }
|
||||
// });
|
||||
|
||||
// return !!deletedToken;
|
||||
// } catch (e) {
|
||||
// if (! (e instanceof PrismaClientKnownRequestError)) {
|
||||
// console.error(e);
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
// No refreshToken rotation for now (see Git history for old code)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user