Implementing Api Keys
Today I'll finally implement the api keys.
Decided to also add created_date
and last_used_at
so users can have a better of idea how their key is used.
Looks like I can't just fetch a user by id, I need to authorize my api first. Which makes sense, I just forgot about that part. I'll have to add a new client for my api and implement token fetching and refreshing using the client credentials flow.
Unfortunately, didn't manage to finish today, but definitely tomorrow.