We are unable to unlink email addresses via the Nakama console when a user has only an Apple ID associated. This only appears to affect the console as calling nk.UnlinkEmail on the server itself works without error.
Is this a known bug?
// Works!
func unlinkEmail(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule) error {
userId := storage.GetUserID(ctx)
account, err := nk.AccountGetId(ctx, userId)
if err != nil {
logger.WithField("err", err).Error("unlink email error.")
return err
}
if err := nk.UnlinkEmail(ctx, userId, account.Email); err != nil {
logger.WithField("err", err).Error("Unlink email error.")
return err
}
return nil
}
- Versions: Nakama 3.35.1
- Server Framework Runtime language: Go
Media:
