google / google/codeworld

LocalAuth JWT token refresh lock

Open
#947 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

**Description**

Internal server error on POST to http://127.0.0.1:8080/refreshToken
```
A web handler threw an exception. Details:
SQLite3 returned ErrorBusy while attempting to perform prepare "SELECT COUNT(*) FROM accounts WHERE userId = :userId AND tokenId = :tokenId AND status = 'Active'": database is locked
```

As result local auth working around one minute, then user becomes signed out.

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.