forked from denbeigh2000/denbeigh-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- move to using d1 for token info (better control over deleting-for-user) - better external abstractions around state validation methods - better internal abstractions for token/state storage
- Loading branch information
1 parent
0f1b779
commit 2259d3f
Showing
11 changed files
with
501 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- Migration number: 0000 2023-11-05T02:35:15.339Z | ||
|
||
CREATE TABLE oauth ( | ||
access_token_hash TEXT PRIMARY KEY, | ||
refresh_token TEXT NOT NULL, | ||
expires_at INTEGER NOT NULL, | ||
user TEXT NOT NULL | ||
); | ||
|
||
CREATE INDEX idx_oauth_expires_at ON oauth (expires_at); | ||
CREATE INDEX idx_oauth_user_expires_at ON oauth (user, expires_at); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.