developmentseed / developmentseed/osm-teams

Use bearer tokens instead of session cookies in API tests

Open
#327 0 comments 0 reactions 0 assignees View on GitHub
Category: API Category: Authentication Priority: Medium Type: Enhancement
Dominant language
JavaScript
Stars
29
Forks
4
PR merge metrics
No merged PRs in 30d

Description

We should look into next-auth documentation on how to use bearer tokens for API endpoints and update our API tests agent to use them, as [suggested here](https://github.com/developmentseed/osm-teams/pull/324#discussion_r1036233420) by @kamicut .

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the next-auth documentation and the discussion linked from this issue, then locate the API tests agent that currently uses session cookies. Determine how bearer-token authentication should work for the API endpoints and update the tests so they authenticate with tokens; done means the API test suite passes using bearer tokens instead of session cookies.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, authentication, testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.