project_nextjs13_flexibble icon indicating copy to clipboard operation
project_nextjs13_flexibble copied to clipboard

cant log in with google

Open cvk123 opened this issue 1 year ago • 3 comments

[next-auth][warn][EXPERIMENTAL_API] getServerSession is used in a React Server Component.
https://next-auth.js.org/configuration/nextjs#getServerSession} https://next-auth.js.org/warnings#EXPERIMENTAL_API

cvk123 avatar Jun 29 '23 15:06 cvk123

I have same warning but I can log in through google, check code, google secrets and id, that's is just a warning that let you know that getServerSession is a experimental function and will get in the future full support for next13

NevercomeX avatar Jun 30 '23 08:06 NevercomeX

This has nothing to do with your error in google login, it would be helpful if you could share the code in the comment

navi-05 avatar Jun 30 '23 09:06 navi-05

oh i solved problems already thanks first i had in env https and not http, 2nd i fuck my grafbase file database so i must delte and install again and 3rd i must put to next.config.js and everything work fine

/** @type {import('next').NextConfig} */ const nextConfig = { images: { remotePatterns: [ { protocol: 'https', hostname: 'lh3.googleusercontent.com', port: '', pathname: '/**', }, ], } }

module.exports = nextConfig

cvk123 avatar Jun 30 '23 14:06 cvk123