findUserByFirebaseUserId static method
Future<UuidValue?>
findUserByFirebaseUserId(
- Session session, {
- required String userIdentifier,
- Transaction? transaction,
Returns the AuthUser id for the Firebase user id, if any.
Implementation
static Future<UuidValue?> findUserByFirebaseUserId(
Session session, {
required String userIdentifier,
Transaction? transaction,
}) async {
final account = await FirebaseAccount.db.findFirstRow(
session,
where: (t) => t.userIdentifier.equals(userIdentifier),
transaction: transaction,
);
return account?.authUserId;
}