developmentseed / developmentseed/osm-teams

Handle case when user has revoked osm token

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Category: Authentication Status: Review Needed
Dominant language
JavaScript
Stars
29
Forks
4
PR merge metrics
No merged PRs in 30d

Description

When the user authenticates to the app using their OSM credentials, we save their login in a session with hydra using `remember_for`:

https://github.com/developmentseed/osm-teams/blob/381dee548d456907243a0da614467b739f55b78c/app/lib/osm.js#L80-L87

When a new login request comes in, we check if we can skip the login in https://github.com/developmentseed/osm-teams/blob/381dee548d456907243a0da614467b739f55b78c/app/oauth/login.js#L19-L22

However we need to check if the user token is still valid before skipping.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.