appsup-dart / firebase_dart

A pure Dart implementation of the Firebase client
Other
91 stars 30 forks source link

signInWithCustomToken throws HandshakeException #43

Closed eximius313 closed 1 year ago

eximius313 commented 1 year ago

When I try to authenticate using custom token, this line:

auth.signInWithCustomToken(customAuthToken)

throws:

HandshakeException: Handshake error in client (OS Error:
I/flutter (15029):  CERTIFICATE_VERIFY_FAILED: certificate is not yet valid(handshake.cc:393))
I/flutter (15029):  #0      _SecureFilterImpl._handshake (dart:io-patch/secure_socket_patch.dart:99:46)
I/flutter (15029): #1      _SecureFilterImpl.handshake (dart:io-patch/secure_socket_patch.dart:142:25)
I/flutter (15029): #2      _RawSecureSocket._secureHandshake (dart:io/secure_socket.dart:915:54)
I/flutter (15029): #3      _RawSecureSocket._tryFilter (dart:io/secure_socket.dart:1044:19)

could you please fix that?

eximius313 commented 1 year ago

It seems to be related with this bug, but I'm testing it on Emulator with Android 12 and I doubt that Google is using Let's Encrypt here

eximius313 commented 1 year ago

It was probably the date&time issue