File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -600,19 +600,6 @@ def test_verify_id_token_revoked(new_user, api_key):
600
600
claims = auth .verify_id_token (id_token , check_revoked = True )
601
601
assert claims ['iat' ] * 1000 >= user .tokens_valid_after_timestamp
602
602
603
- def test_verify_id_token_tolerance (new_user , api_key ):
604
- expired_id_token = _sign_in_with_password (new_user_with_params ())
605
- time .sleep (1 )
606
- # Verify the ID token with a tolerance of 0 seconds. This should
607
- # raise an exception because the token is expired.
608
- with pytest .raises (auth .ExpiredIdTokenError ) as excinfo :
609
- auth .verify_id_token (expired_id_token , check_revoked = False , clock_skew_seconds = 0 )
610
- assert str (excinfo .value ) == 'The Firebase ID token is expired.'
611
-
612
- # Verify the ID token with a tolerance of 2 seconds. This should
613
- # not raise an exception because the token is within the tolerance.
614
- auth .verify_id_token (expired_id_token , check_revoked = False , clock_skew_seconds = 2 )
615
-
616
603
def test_verify_id_token_disabled (new_user , api_key ):
617
604
custom_token = auth .create_custom_token (new_user .uid )
618
605
id_token = _sign_in (custom_token , api_key )
You can’t perform that action at this time.
0 commit comments