diff --git a/auth/api/iam/rendering.go b/auth/api/iam/rendering.go index 84c8d8b344..0ccb3ab6d5 100644 --- a/auth/api/iam/rendering.go +++ b/auth/api/iam/rendering.go @@ -37,8 +37,9 @@ type CredentialInfo struct { } func makeCredentialInfo(cred vc.VerifiableCredential) CredentialInfo { - result := CredentialInfo{ - ID: cred.ID.String(), + result := CredentialInfo{} + if cred.ID != nil { + result.ID = cred.ID.String() } for _, curr := range cred.Type {