The Complete Strapi™ Course with Plugins and Deployment - Performing User Authentication Through API

The Complete Strapi™ Course with Plugins and Deployment - Performing User Authentication Through API

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial covers the process of performing authentication using Postman. It begins with setting up a GET request to an API endpoint and then moves on to creating a POST request without authentication, which results in an error. The tutorial then explains how to register a user via API, obtain a JWT token, and use it for authenticated requests. The importance of the JWT token for future authenticated requests is emphasized, and the tutorial concludes with a preview of future content on building a front-end for the application.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What tool is recommended for making API requests as demonstrated in the video?

Insomnia

cURL

Postman

Swagger

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the expected outcome when making a POST request without authentication?

The request is redirected

The request is successful

The request is ignored

The request is forbidden

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which endpoint is used to register a new user via the API?

/api/auth/local/login

/api/auth/local/register

/api/user/register

/api/user/signup

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What important information is received upon successful user registration?

User ID

JWT Token

Session ID

API Key

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is the JWT token important for future requests?

It provides user preferences

It authenticates the user for future requests

It is used for logging purposes

It allows access to public endpoints

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should be done with the JWT token in a front-end application?

Share it with other users

Use it only once

Store it for future requests

Discard it after use

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using the JWT token in the POST request?

To encrypt the request data

To authenticate as a registered user

To bypass the API rate limit

To log the request details