userId property

String? userId

Returns the user ID on the authentication platform during sign-in.

This ID is unique and can be used as a unique ID to register in the user's DB.

On sign-out, null is returned.

サインイン時、認証プラットフォーム上のユーザーIDを返します。

このIDはユニークなものとなっているためユーザーのDBに登録するユニークIDとして利用可能です。

サインアウト時はnullが返されます。

Implementation

String? get userId => adapter.userId;