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
Gerelateerde topics
| Topic | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
| User API keys specification | 69 | 36014 | 22 september 2025 | |
| Discourse Login & Registeration | 4 | 3591 | 28 september 2016 | |
| Generating and retrieving user API keys | 0 | 529 | 2 maart 2023 | |
| Allow API use by regular users, not just admins | 6 | 1375 | 14 februari 2023 | |
| Generating User Api Keys with REST API | 20 | 8800 | 8 april 2018 |