This episode is for members only

Sign up to access "Nuxt 3 Authentication with Laravel Sanctum" right now.

Get started
Already a member? Sign in to continue
Playing
11. Using TypeScript interfaces for forms

Transcript

00:00
This is completely optional, but throughout the course, we're also going to provide interfaces for the forms that we're building. Kind of makes sense.
00:06
So if we come over to our index.typescript global and pull out a new interface here, let's create one for our login form. We know that as part of this form, we have an email address and a password. So let's go ahead and define these two things out now.
00:22
And now that we've got this, we can go ahead and type this as well. So we can just provide login form in here. And now we know that we've got an email and a password. Once again, this makes it really simple.
00:33
When you are writing this stuff out, you know that you are getting an email address in here and you also know that you're getting a password. This is completely optional, but since we're working in TypeScript by default with Nuxt, it kind of makes sense to define these out.
17 episodes1 hr 1 min

Overview

Learn how to build a full authentication boilerplate with Nuxt, Sanctum and Fortify.

This course covers everything you need to get started with authentication with Nuxt and Laravel. We’ll start by setting up a Nuxt project and configuring Laravel Sanctum, then add the ability to register, sign in and sign out.

We’ll also cover some TypeScript tips, protecting pages with middleware, and using Vue composables to keep our code tidy.

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Comments

No comments, yet. Be the first to leave a comment.