From 772f6e59490b090edf7f2ab502ccaa480985c1ca Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Sun, 14 Mar 2021 17:56:16 +0100 Subject: start working on oauth2 implementation --- internal/db/db.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/db/db.go') diff --git a/internal/db/db.go b/internal/db/db.go index 4ea4e1af6..9ed196b2f 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -24,6 +24,7 @@ import ( "strings" "github.com/go-fed/activity/pub" + "github.com/go-oauth2/oauth2/v4" "github.com/gotosocial/gotosocial/internal/config" "github.com/sirupsen/logrus" ) @@ -39,6 +40,11 @@ type DB interface { */ pub.Database + /* + OAUTH2 DATABASE FUNCTIONS + */ + TokenStore() oauth2.TokenStore + /* ANY ADDITIONAL DESIRED FUNCTIONS */ -- cgit v1.2.3