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
export const TestPage: FC<TestPageProps> = ({ }) => { | |
} | |
export const getServerSideProps = withAuthUserSSR({ | |
authPageURL: '/login', | |
whenUnauthed: AuthAction.REDIRECT_TO_LOGIN, | |
})(async (props) => { | |
return withVerifiedEmail(props, '/verifyEmail', async () => { |
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 { NextApiRequest, NextApiResponse } from 'next'; | |
import { AuthUser, verifyIdToken } from 'next-firebase-auth'; | |
export interface AuthenticatedNextApiRequest extends NextApiRequest { | |
AuthUser?: AuthUser; | |
} | |
/** | |
* API Middleware for Firebase ID Token Authorization. | |
* API endpoints wrapped with this middleware will be required to be executes with a |