diff options
author | 2022-06-11 10:39:39 +0200 | |
---|---|---|
committer | 2022-06-11 10:39:39 +0200 | |
commit | 694a49058951de31cca4ea061e2c08d44e712612 (patch) | |
tree | 8509cb95f41faaf15d4352707617bff17300978d /internal/api/client/auth/auth.go | |
parent | [bugfix] Make accounts media_only query also work with pg (#643) (diff) | |
download | gotosocial-694a49058951de31cca4ea061e2c08d44e712612.tar.xz |
[feature] Add `created_at` and `error_description` to `/oauth/token` endpoint (#645)
* start fiddling about with oauth server
* start returning more helpful errors from oauth
* test helpful(ish) token errors
* add missing license header
Diffstat (limited to 'internal/api/client/auth/auth.go')
-rw-r--r-- | internal/api/client/auth/auth.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/api/client/auth/auth.go b/internal/api/client/auth/auth.go index 10d374838..a097f8004 100644 --- a/internal/api/client/auth/auth.go +++ b/internal/api/client/auth/auth.go @@ -23,7 +23,6 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/api" "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/superseriousbusiness/gotosocial/internal/oauth" "github.com/superseriousbusiness/gotosocial/internal/oidc" "github.com/superseriousbusiness/gotosocial/internal/processing" "github.com/superseriousbusiness/gotosocial/internal/router" @@ -68,16 +67,14 @@ const ( // Module implements the ClientAPIModule interface for type Module struct { db db.DB - server oauth.Server idp oidc.IDP processor processing.Processor } // New returns a new auth module -func New(db db.DB, server oauth.Server, idp oidc.IDP, processor processing.Processor) api.ClientModule { +func New(db db.DB, idp oidc.IDP, processor processing.Processor) api.ClientModule { return &Module{ db: db, - server: server, idp: idp, processor: processor, } |