-
Notifications
You must be signed in to change notification settings - Fork 4
Why a database?
Martijn van der Ven edited this page May 10, 2018
·
1 revision
As asked in the IndieWeb development chat: “what was the driver for SQLite storage?”
- One Mintoken instance can be used by multiple sites, and as any site can have any number of tokens, this just seemed easiest.
- Having them in a DB makes it easy to revoke multiple tokens at once too.
- Or possibly create a UI to see when you issued tokens to which clients, kinda like what Twitter has.
- You can do this with files, of course, but you might have overhead trying to wrangle the file system
- And I am hoping that, by having the user create the DB file, they will think about putting it somewhere safe.
- More importantly, you don’t need separate backup processes for it.