userId property

  1. @override
String? userId
override

When signing in, make sure to return the user ID on the authentication platform.

This ID should be unique and available as a unique ID to be registered in the user's DB.

Return null when signing out.

サインイン時、認証プラットフォーム上のユーザーIDを返すようにしてください。

このIDはユニークなものにして、ユーザーのDBに登録するユニークIDとして利用可能にしてください。

サインアウト時はnullを返すようにしてください。

Implementation

@override
String? get userId => !isSignedIn ? null : database.userId;