1
0
mirror of https://github.com/zitadel/zitadel.git synced 2025-03-31 14:42:16 +00:00
Livio Amstutz ec5020bebc
feat: refresh token ()
* begin refresh tokens

* refresh tokens

* list and revoke refresh tokens

* handle remove

* tests for refresh tokens

* uniqueness and default expiration

* rename oidc token methods

* cleanup

* migration version

* Update internal/static/i18n/en.yaml

Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>

* fixes

* feat: update oidc pkg for refresh tokens

Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2021-05-20 11:33:35 +00:00

19 lines
343 B
Go

package model
import (
es_models "github.com/caos/zitadel/internal/eventstore/v1/models"
"time"
)
type RefreshToken struct {
es_models.ObjectRoot
TokenID string
ApplicationID string
UserAgentID string
Audience []string
Expiration time.Time
Scopes []string
PreferredLanguage string
}