luckyframework / luckyframework/lucky

There is no way to force-logout JWT tokens

Open
#1,810 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Crystal
Stars
2.7k
Forks
172
PR merge metrics
No merged PRs in 30d

Description

Lucky does not have a way to revoke API authentication JWT token. While the clients can delete it themselves, force-logout (e.g. lost device) is not possible.

Worth reading:
https://evertpot.com/jwt-is-a-bad-default/

What about providing a database-based session too?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Begin by locating Lucky's JWT authentication implementation, then read the linked JWT discussion and clarify whether the goal is token revocation, database-backed sessions, or both; done means a lost device can be force-logged out.

Written by the indexing model from the issue text.

Assessment

Tech stack
crystal
Domain
authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.