Closed valery-barysok closed 3 years ago
Library version: Latest
During the import of users I need to provide partial metadata for user to import but it requires both.
My code looks like:
var metadata auth.UserMetadata if user.CreatedAt.Valid { metadata.CreationTimestamp = user.CreatedAt.Time.Unix() * 1000 } if user.LastLogInAt.Valid { metadata.LastLogInTimestamp = user.LastLogInAt.Time.Unix() * 1000 } users = append(users, (&auth.UserToImport{}). UID(...). Email(...). EmailVerified(...). Metadata(&metadata). PasswordHash(...), ) ... result, err := authClient.ImportUsers(ctx, users, opts)) ...
I found a few problems with this issue:
Library version: Latest
During the import of users I need to provide partial metadata for user to import but it requires both.
My code looks like: