auth.update()

更新用户信息

final res = await supabase.auth.update(
  UserAttributes(data: {'hello': 'world'})
);

final error = res.error;

Notes

用户电子邮件:电子邮件更新将向用户的当前和新的电子邮件发送一封带有确认链接的电子邮件。

用户元数据。一般来说,将用户数据存储在你的公共模式中的一个表(即public.users)中更好。 如果你的数据很少变化或者只针对登录的用户,请使用update()方法。

Examples

Update a user's metadata.

final res = await supabase.auth.update(
  UserAttributes(data: {'hello': 'world'})
);

final error = res.error;

results matching ""

    No results matching ""