I am not getting session in nextauth

this is my options.js where all the provider’s options

import PatreonProvider from "next-auth/providers/patreon"
export const options = {
  providers: [
    PatreonProvider({
      id: 'patreon',
      name: 'PATREON',
      type: 'oauth',
      version: '2.0',
      token: {
        url: `${process.env.PATREON_TOKEN_URL}`,
      },
      userinfo: {
        url: `${process.env.PATREON_PROFILE_URL}`
      },
      profile: async (profile) => {
        return {
          id: profile.data.id,
          name: profile.data.attributes.full_name,
          email: profile.data.attributes.email,
          provider: 'PATREON',
        };
      },
      clientId: process.env.PATREON_CLIENT_ID,
      clientSecret: process.env.PATREON_CLIENT_SECRET,
      authorization: {
        params: {
          redirect_uri: "http://localhost:3000/videos",
          scope: "identity identity.memberships",
          grant_type: "authorization_code",
        },
      },
    }),
  ],
  secret: process.env.SECRET,
  callbacks: {
    async jwt({ token, user }) {
      return token;
    },
    async session({ session, token }) {
      return session;
    },
  },
}

I am trying to get the session by this code snippet

import { getServerSession } from 'next-auth';
import { options } from "../app/api/auth/[...nextauth]/options";

const Navbar = async () => {
  const session = await getServerSession(options)

but the session stays undefined or null
What’s going on here?

This would be better asked in nextauth support forums.