mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-06 17:19:31 -06:00
media handler updates
This commit is contained in:
parent
d797ddf704
commit
17a62d53ed
15 changed files with 237 additions and 55 deletions
|
|
@ -72,7 +72,10 @@ func New(database db.DB, log *logrus.Logger) Server {
|
|||
manager := manage.NewDefaultManager()
|
||||
manager.MapTokenStorage(ts)
|
||||
manager.MapClientStorage(cs)
|
||||
manager.SetAuthorizeCodeTokenCfg(manage.DefaultAuthorizeCodeTokenCfg)
|
||||
manager.SetAuthorizeCodeTokenCfg(&manage.Config{
|
||||
AccessTokenExp: 0, // access tokens don't expire -- they must be revoked
|
||||
IsGenerateRefresh: false, // don't use refresh tokens
|
||||
})
|
||||
sc := &server.Config{
|
||||
TokenType: "Bearer",
|
||||
// Must follow the spec.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue