@@ -347,24 +347,28 @@ func (s *Service) Create(info *identity.Info) error {
347347 if err := s .LoginID .Create (i ); err != nil {
348348 return err
349349 }
350+ * info = * loginIDToIdentityInfo (i )
350351
351352 case authn .IdentityTypeOAuth :
352353 i := oauthFromIdentityInfo (info )
353354 if err := s .OAuth .Create (i ); err != nil {
354355 return err
355356 }
357+ * info = * s .toIdentityInfo (i )
356358
357359 case authn .IdentityTypeAnonymous :
358360 i := anonymousFromIdentityInfo (info )
359361 if err := s .Anonymous .Create (i ); err != nil {
360362 return err
361363 }
364+ * info = * anonymousToIdentityInfo (i )
362365
363366 case authn .IdentityTypeBiometric :
364367 i := biometricFromIdentityInfo (info )
365368 if err := s .Biometric .Create (i ); err != nil {
366369 return err
367370 }
371+ * info = * biometricToIdentityInfo (i )
368372
369373 default :
370374 panic ("identity: unknown identity type " + info .Type )
@@ -395,11 +399,15 @@ func (s *Service) Update(info *identity.Info) error {
395399 if err := s .LoginID .Update (i ); err != nil {
396400 return err
397401 }
402+ * info = * loginIDToIdentityInfo (i )
403+
398404 case authn .IdentityTypeOAuth :
399405 i := oauthFromIdentityInfo (info )
400406 if err := s .OAuth .Update (i ); err != nil {
401407 return err
402408 }
409+ * info = * s .toIdentityInfo (i )
410+
403411 case authn .IdentityTypeAnonymous :
404412 panic ("identity: update no support for identity type " + info .Type )
405413 case authn .IdentityTypeBiometric :
0 commit comments