I'm making a SAAS that will index articles and pages faster using Google Search Console API. I have made the authoisation with Next-Auth since I'm using NextJS. The user logs in with their google account. When I console log their session, I'm only getting their email and name. Nothing else, is this normal?
I want to list their websites that are connected to Google Search Console.
Some info:
Page where I will list the websites:
´´´
import { getServerSession } from 'next-auth'
import React from 'react'
import { options } from '../api/auth/[...nextauth]/options'
const MyWebsitesPage = async () => {
const session = await getServerSession(options)
console.log("session", session)
return (
<div className='container max-w-6xl mx-auto pl-5 pr-5'>
</div>
)
}
´´´
My auth options page:
import type { NextAuthOptions } from 'next-auth'
import GoogleProvider from "next-auth/providers/google";
export const options: NextAuthOptions = {
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID as string,
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string
})
]
}