File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -601,11 +601,11 @@ def test_verify_id_token_revoked(new_user, api_key):
601
601
assert claims ['iat' ] * 1000 >= user .tokens_valid_after_timestamp
602
602
603
603
def test_verify_id_token_tolerance (new_user , api_key ):
604
- expired_id_token = _sign_in_with_password (new_user . email , 'password' , api_key )
604
+ expired_id_token = _sign_in_with_password (new_user_with_params () )
605
605
time .sleep (1 )
606
606
# Verify the ID token with a tolerance of 0 seconds. This should
607
607
# raise an exception because the token is expired.
608
- with pytest .raises (auth .InvalidIdTokenError ) as excinfo :
608
+ with pytest .raises (auth .ExpiredIdTokenError ) as excinfo :
609
609
auth .verify_id_token (expired_id_token , check_revoked = False , clock_skew_seconds = 0 )
610
610
assert str (excinfo .value ) == 'The Firebase ID token is expired.'
611
611
@@ -661,7 +661,7 @@ def test_verify_session_cookie_tolerance(new_user, api_key):
661
661
time .sleep (3 )
662
662
# Verify the session cookie with a tolerance of 0 seconds. This should
663
663
# raise an exception because the cookie is expired.
664
- with pytest .raises (auth .InvalidSessionCookieError ) as excinfo :
664
+ with pytest .raises (auth .ExpiredSessionCookieError ) as excinfo :
665
665
auth .verify_session_cookie (expired_session_cookie , check_revoked = False ,
666
666
clock_skew_seconds = 0 )
667
667
assert str (excinfo .value ) == 'The Firebase session cookie is expired.'
You can’t perform that action at this time.
0 commit comments