delegation,invocation: meta can be nil in the model, but not in the view

This commit is contained in:
Michael Muré
2024-12-04 19:53:05 +01:00
parent bb24081b28
commit d0d4ec3abe
2 changed files with 7 additions and 0 deletions

View File

@@ -277,7 +277,11 @@ func tokenFromModel(m tokenPayloadModel) (*Token, error) {
}
tkn.proof = m.Prf
tkn.meta = m.Meta
if tkn.meta == nil {
tkn.meta = meta.NewMeta()
}
tkn.expiration, err = parse.OptionalTimestamp(m.Exp)
if err != nil {