From Zero to Confident API Dev Using JWT and Laravel

So what is API?

API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message or check the weather on your phone, you’re using an API. It’s a way of data communication. It lets you share/store/validate data from your application to other applications and vice versa. If you want to share some data publicly/privately to some other application, will you let them modify/access your database? Of course, not, there comes the vital role of API. You can share an endpoint to others where they can store/retrieve data with proper validation and authentication.

  1. Payload
  2. Signature
JWT Structure
Sample of JWT
Header part of JWT

--

--

--

A software engineer from Bangladesh.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Sprint Zero

Diving into PHP Internals: A quick attempt to understand that weird error

The day of most ticket reopening (DST). How to handle it in Java?

Railway-Oriented Programming in Java

Setting up FTN-style message networks with ENiGMA½ BBS

Kotlin algorithms — Introduction

Bridge more securely with Connext, now on imToken

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mehedi Hassan Sunny

Mehedi Hassan Sunny

A software engineer from Bangladesh.

More from Medium

How to set up Laravel with PostgreSQL? 💡

How to create dynamic multiple instances of Filepond file upload library.

JSON Web Tokens without Firebase JWT

Laravel: My Proposal for the Inertia-Based File Structure and Invokable Controllers