flame/models.go
func (t *Token) SetTokenData(typ TokenType, scope []string, expiresAt time.Time, client Client, resourceOwner ResourceOwner) {
	t.Type = typ
	t.Scope = scope
	t.ExpiresAt = expiresAt
	t.Application = client.ID()
	if resourceOwner != nil {
		t.User = coal.P(resourceOwner.ID())
	}
}
func (t *Token) SetTokenData(typ TokenType, scope []string, expiresAt time.Time, client Client, resourceOwner ResourceOwner) {
	t.Type = typ
	t.Scope = scope
	t.ExpiresAt = expiresAt
	t.Application = client.ID()
	if resourceOwner != nil {
		t.User = coal.P(resourceOwner.ID())
	}
}
// SetTokenData implements the flame.GenericToken interface.