adrianhajdin / project_nextjs13_flexibble

https://jsmastery.pro
639 stars 133 forks source link

cant log in with google #5

Open cvk123 opened 1 year ago

cvk123 commented 1 year ago

[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

NevercomeX commented 1 year ago

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

navi-05 commented 1 year ago

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

cvk123 commented 1 year ago

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