Menu

Day 45 — WEB + BACKEND ENGINEERING
📰

Day 45 — WEB + BACKEND ENGINEERING

DEV Community: authentication·Ayesha Ahmed·8 days ago
#5v3uGJD5
Reading 0:00
15s threshold

![ ]( https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/mo2drhikcb0nuo1tA login screen doesn't make an application secure. Backend authentication does.

Day 45 — WEB + BACKEND ENGINEERING

Topic: Backend Authentication

Authentication is the process of verifying who a user is before allowing access to protected resources.

Let's take a Flutter application with a Node.js/Express backend.

When a user logs in, here's what happens:

The Flutter app sends login credentials to the backend over HTTPS.

The backend validates the input.

It checks the user's credentials against securely stored password hashes.

If the credentials are valid, the backend issues an access token.

Flutter securely stores the token and uses it for protected API requests.

Example:

POST /api/auth/login

Enter fullscreen mode

Exit fullscreen mode

After successful authentication, the backend may return:

{ "accessToken" : "your-access-token" , "expiresIn" : 900 }

Enter fullscreen mode

Exit fullscreen mode

For…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.