Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

API Authentication Methods with JavaScript

via CodeSignal

Overview

In this course, you will learn how to work with various API authentication methods using JavaScript. You’ll explore the basics of API Key authentication, manage sessions using cookies, and interact with APIs using JSON Web Tokens (JWTs). By the end of this course, you’ll be able to access and interact with protected APIs securely.

Syllabus

  • Unit 1: Introduction to API Authentication with JavaScript
    • Exploring API Key Authentication Failure in JavaScript
    • Inserting API Key into Request Headers
    • Fixing API Key Header Mistake in JavaScript
    • Using Environment Variables for API Key Security in JavaScript
    • Secure API POST Request with API Key in JavaScript
  • Unit 2: Session-Based Authentication with JavaScript
    • Signing Up with HTTP Requests in JavaScript
    • Managing Session-Based Authentication with JavaScript
    • Fixing Session Management in API Requests
    • Improving Session Management with Logout in Node.js
    • Session-Based Authentication Workflow in Node.js
  • Unit 3: Introduction to JWTs: Authenticate and Access Protected Endpoints Using JavaScript
    • Examining JWT Tokens Through API Login
    • Extract and Print JWT Tokens
    • Fix the Authorization Header for JWT Authentication
    • Completing JWT Authentication for Protected API Access
    • Authenticate and Access Protected API Endpoint with JWT
  • Unit 4: Refreshing JWTs and Signing Out in JavaScript
    • Refreshing JWT Tokens in JavaScript
    • Fixing Logout and Session Invalidation in JWT Authentication
    • Completing the Logout Process in JWT Authentication

Reviews

Start your review of API Authentication Methods with JavaScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.