Skip to content

invertase/oauth-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth PKCE Implementation Technical Test

Overview

This is a 1-hour technical test to implement PKCE (Proof Key for Code Exchange) in the OAuth 2.0 frontend client application located in /app.

⚠️ IMPORTANT: This test is FRONTEND ONLY. Do NOT modify the mock OAuth server.

Setup

  1. Install dependencies:

    pnpm install
  2. Start the mock OAuth server (no modifications needed):

    pnpm dev --filter oauth-mock-server
  3. In a new terminal, start the React app:

    pnpm dev --filter app
  4. Open http://localhost:5173 in your browser

Your Task

Implement PKCE in the OAuth 2.0 flow within the React frontend application (/app directory).

The frontend application should:

  • Generate and use PKCE parameters correctly
  • Successfully authenticate users via the mock OAuth server
  • Display user profile information after successful authentication
  • Handle errors appropriately

Note: You should only modify code in the /app directory. The mock OAuth server is fully implemented and working.

Technical Details

Note: Some endpoints of the mock server have an intentional 10% random error rate to test your error handling :)

Evaluation

Your implementation will be evaluated on:

  • Correctness of PKCE implementation
  • Code quality and organization
  • Git commit structuring (we prefer to see logical commits rather than one large commit)
  • Understanding of OAuth 2.0/PKCE

Feel free to use AI tools to assist you, but please ensure you fully understand any code you submit as we'll discuss your implementation in detail during the follow-up interview.

Good luck!

About

oauth challenge with pkce spa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published