A Pen by Arian Nargesi on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="nav"> | |
<li onclick="showLogin()">Login</li> | |
<li onclick="showSignup()">Sign up</li> | |
<li onclick="showForgotPassword()">Forgot password</li> | |
<li onclick="showSubscribe()">Subscribe</li> | |
<li onclick="showContactUs()">Contact us</li> | |
</ul> | |
<div class="wrapper"> | |
<div class="rec-prism"> | |
<div class="face face-top"> |
To create a Table
create table risk_clos_rank(
id_num int IDENTITY(1,1) NOT NULL,
username nvarchar(100),
datetime_of_decision DATETIME
);
CREATE TABLE TheNameOfYourTable (
ID INT NOT NULL IDENTITY(1,1),
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NextMiddleware, NextResponse } from "next/server"; | |
const publicPages = ['/', '/login', '/signup'] | |
export const middleware: NextMiddleware = async (req) => { | |
const sessionToken = req.cookies.get('next-auth.session-token') | |
if (req.nextUrl.pathname.startsWith("/_next")) | |
return NextResponse.next(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { login } from "@/api/authentication"; | |
import NextAuth from "next-auth/next"; | |
import CredentialsProvider from "next-auth/providers/credentials"; | |
import GoogleProvider from "next-auth/providers/google"; | |
import LinkedInProvider, { LinkedInProfile } from "next-auth/providers/linkedin"; | |
import { signIn } from "next-auth/react"; | |
const handler = NextAuth({ | |
debug: false, |