developmentseed / developmentseed/scoreboard

When user is not signed in: Error: "failed to authenticate"

Open
#533 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
27
Forks
8
PR merge metrics
No merged PRs in 30d

Description

This error is printed to the JavaScript console when the user is not signed in. Instead the error should be caught and if necessary to prompt user to login again. If they were logged in, and their token cannot be refreshed, they should be prompted as to what to do next. If there is no session info at all (e.g. Scoreboard server was restarted) then I think it would be fine to just suppress this error instead of reaching the console.

If I recall correctly, some browsers (IE?) can get a little annoying when they see errors being logged to console.

```
Error: "failed to authenticate"
getUserInfo index.js:71
index.js:2178
__stack_frame_overlay_proxy_console__ index.js:2178
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.