Nuxt Auth Crash Course #4 - Sign in and Sign out
HTML-код
- Опубликовано: 6 сен 2024
- In this lesson, we'll implement Nuxt Auth's useSession composable, allowing us to sign in and out.
💻 Follow Along:
- Repo: github.com/Cod...
💻 Nuxt Auth:
- Docs: sidebase.io/nu...
- Repo: github.com/sid...
🐦 My Network:
- Twitter: / codybontecou
- Blog: codybontecou.com/
For anyone having trouble with setting this up (useSession for example) note that the version used is 0.4.4 instead of 0.5.0 (latest stable version) or 0.6.* which is in beta.
I've been struggling to focus and choose one method of auth for nuxt3 out of the three major variants online. Only now, after I've watched and rewatched your clips a few times, I notice you don't have that many subscribers and not that many likes. Wonder why though? My research is telling me that your method is the best one as future-proof, and yet you're so underestimated. I'll try to focus until the last chapter and provide some correct feedback when I implement it on my own project. Cheers!
0:20 is this still called useSession() or is this useAuth() now?
hahaha damn - first thing you mention on the next video! lol
I have some trouble with using github oauth. When i'm clicking the "sign in with github" button it redirects me onto 404 github page. Does anyone know what could be the problem? (Previously i have installed preceding next-auth version like someone suggested in some nuxt-auth github issue(app was just crashing although i didn't do anything else that wasn't in "quick start" section of nuxt-auth docs))
Oh, i'm just retarded, i have accidentally prepended clientId with a space character
from what i understand here, sidebase create the login page based on providers, but can't really see the file for that page, i mean how do we customize it?
Hey! Good question. I believe the 6th video in this series is what you’re looking for.
why I cannot use useSession()
I cant use too ... :(
useSession() now renamed to useAuth()
Thank@@kostikovmu