Update pages/settings/teams.tsx
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
This commit is contained in:
parent
2af9ed55a7
commit
b15ef1d8b0
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ export default function Teams() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export the `session` prop to use sessions with Server Side Rendering
|
// Export the `session` prop to use sessions with Server Side Rendering
|
||||||
export const getServerSideProps: GetServerSideProps<{session: Session | null}> = async (context) => {
|
export const getServerSideProps: GetServerSideProps<{ session: Session | null }> = async (context) => {
|
||||||
const session = await getSession(context);
|
const session = await getSession(context);
|
||||||
if (!session) {
|
if (!session) {
|
||||||
return { redirect: { permanent: false, destination: '/auth/login' } };
|
return { redirect: { permanent: false, destination: '/auth/login' } };
|
||||||
|
|
Loading…
Reference in a new issue