revokeRefreshTokens method
Revokes the refresh tokens of the user uid: the sessions of the user end at their next token refresh.
ID tokens already issued stay valid until they expire (at most an hour) unless the verifier passes
checkRevoked: true to verifyIdToken, or the security rules compare auth_time. The cut-off is the
current second: a token issued in the same second still passes.
Implementation
Future<void> revokeRefreshTokens(String uid) async {
_checkOpen();
_checkUid(uid);
await _identityToolkit('accounts:update', <String, Object?>{
'localId': uid,
'validSince': '${app.now().millisecondsSinceEpoch ~/ 1000}',
});
}