Skip to content

Commit

Permalink
Fix call to RedisSessionToken creation to pass email.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Jun 18, 2024
1 parent 8fc0cd4 commit b783a88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_react_auth_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def create_test_authtoken(expires_or_expired_at: int = EXPIRES_AT, use_invalid_a
jwt = create_test_jwt(use_invalid_auth0_secret)
os.environ["ENV_NAME"] = DEFAULT_ENV
auth = Auth(AUTH0_CLIENT_ID, AUTH0_SECRET_INVALID if use_invalid_auth0_secret else AUTH0_SECRET, ENVS)
authtoken = auth.create_authtoken(jwt, expires_or_expired_at, DOMAIN)
authtoken, email = auth.create_authtoken(jwt, expires_or_expired_at, DOMAIN)
assert email == EMAIL
return authtoken


Expand Down

0 comments on commit b783a88

Please sign in to comment.