Maybe you could generate a session token that’s separate from the API key. Use that token to indicate the user’s login status. That way you wouldn’t need to delete the API key when the user logs out.
simon
6
Related topics
| 글 | 댓글 | 조회수 | 활동 | |
|---|---|---|---|---|
| User API keys specification | 69 | 37370 | 9월 22, 2025 | |
| Discourse Login & Registeration | 4 | 3666 | 9월 28, 2016 | |
| Generating and retrieving user API keys | 0 | 534 | 3월 2, 2023 | |
| Allow API use by regular users, not just admins | 6 | 1508 | 2월 14, 2023 | |
| Generating User Api Keys with REST API | 20 | 8880 | 4월 8, 2018 |