Login Next.js

preview_player
Показать описание


----

----

----

----
Follow Me Online Here:

#benawad

----
#benawad
Рекомендации по теме
Комментарии
Автор

Ben you never explained how did that cookie from server get to the client side cookie. And I am having problem setting cookie with apollo client 3 and your video is outdated, I think you need to make tutorials on apollo client 3 for authentication.

usmanmughal
Автор

Где хранится токен? Где производится проверка для роута, что пользователь авторизован? Из 6 минут видео 2, 5 минуты на регистрацию, остальное на правку валидации.

paulp
Автор

Many thanks Ben!!!
You can use *ts-optchain* package
and your response && response.data && response.data.login, will become *oc(response).data.login*

sbogdaniuk
Автор

Hey nice Tutorial. i got stuck with Apollo cache when using Next. Seems like it fails to read data when i fire local queries :/ always returns undefined :/ what might be a problem ?

giorgibatsiashvili
Автор

I seem to get an error following this; I get a CORS error in the browser: "The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'."

I have credentials: 'include' set for my cookie. Setting same-origin fixes this error, however I see no cookie in chrome.

CardinalHijack
Автор

what kind of coding style this is, disgusting 🤮, why you put every thing inside your component, this is probably is the ugliest code base that i saw in my entire life 🤢

a_m_dev
join shbcf.ru