Auth with PocketBase! OAuth2 with EASY popup OR techy code exchange flows 🔐🎥 LIVE Coding & Chill 🔴

Опубликовано: 01 Январь 1970
на канале: Johnny Magrippis
273
10

I love PocketBase for an excellent way to deliver CMS functionality to a client, while combo-ing with the DevEx and UX niceties of meta frameworks like SvelteKit, but what if we need users to have a little bit of auth?

Email capture is common for leads, and in our travel blog we may want users to be able to like trips! Let’s discover how we’d implement that, by figuring out how to setup Auth with PocketBase and SvelteKit 🙌

🚀 Click around the app yourself: https://travel-pocket.vercel.app/
💻 See the code (private repo 😱): https://github.com/johnnify & https://github.com/johnnify/travel-po...

This long stream combos beautifully with my latest short video:

👀 How to deploy PocketBase:    • Your own CMS + Backend in 15': How to...  

And if you’re a beginner, you may want to start with our Portfolio "Paulina Puppers" series, and end up with the same or an equivalent project:    • Brand new Fullstack App with Svelte 5...  

Check around the channel for more playlists and increasingly complicated tech stack choices 🙌

— JOHNNIFY PREMIUM —
Get this repository AND MORE with Johnnify Premium: https://johnnify.com/premium
— 🙌🙌🙌 —

— COMMUNITY —
Our DISCORD SERVER 👾:   / discord  
— 🥳🥳🥳 —

— Agenda —
✅ What are we doing today? Why PocketBase?
✅ How to setup PocketBase anyway?!    • Your own CMS + Backend in 15': How to...  
✅ Setting up a new Google client id and secret! https://console.cloud.google.com/apis...
✅ Client-side “popup flow”: https://pocketbase.io/docs/authentica...
✅ Let’s allow users to like travels!
[ ] Client-side Code Exchange flow: https://pocketbase.io/docs/authentica...
[ ] What about server-side?! https://pocketbase.io/docs/api-record...
— HAVE FUN —

No affiliations whatsoever: if I show something, you know you're hearing my unfiltered thoughts 😄

— Highlighted software —
PocketBase: https://pocketbase.io/
SvelteKit: https://kit.svelte.dev/
Tailwind: https://tailwindcss.com/

My own website: https://magrippis.com/

Search for `@jmagrippis` to find me on socials like Instagram & Twitter! And remember our DISCORD SERVER 😉:   / discord  

Between the comment section and the socials, let me know *somewhere* what you’d like me to cover next 🙌

Stream number 125!


TIMESTAMPS

00:00 - What are we doing today? Why PocketBase?
7:54 - Setting up a new Google client id and secret!
22:40 - Client-side “popup flow”
44:30 - Let’s create a client-side only PocketBase client!
1:04:58 - Let’s allow users to like travels! New collection to store user “hearts”!
1:13:40 - Allow a user to 🧡 a travel!
1:47:35 - Refactor for subscriptions!
2:07:10 - Dynamically populated login screen!
2:30:58 - ULTIMATE 🥳 DEMO


Смотрите видео Auth with PocketBase! OAuth2 with EASY popup OR techy code exchange flows 🔐🎥 LIVE Coding & Chill 🔴 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Johnny Magrippis 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 273 раз и оно понравилось 10 людям.