source/core-api/lambda_functions/auth_generate_token.py [75:92]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                keypair = jwk.JWK.from_json(private_key)
                # issued-at and not-before can be the same time (epoch seconds)
                iat = int(time.time())
                nbf = iat
                # expiration (exp) is a time after iat and nbf, like 1 hour (epoch seconds)
                exp = iat + VALIDITY_PERIOD

                # create access token claims
                claims = {
                    'aud': EVENT_ID,
                    'sub': request_id,
                    'queue_position': queue_number,
                    'token_use': 'access',
                    'iat': iat,
                    'nbf': nbf,
                    'exp': exp,
                    'iss': issuer
                }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



source/core-api/lambda_functions/generate_token.py [70:87]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                keypair = jwk.JWK.from_json(private_key)
                # issued-at and not-before can be the same time (epoch seconds)
                iat = int(time.time())
                nbf = iat
                # expiration (exp) is a time after iat and nbf, like 1 hour (epoch seconds)
                exp = iat + VALIDITY_PERIOD

                # create access token claims
                claims = {
                    'aud': EVENT_ID,
                    'sub': request_id,
                    'queue_position': queue_number,
                    'token_use': 'access',
                    'iat': iat,
                    'nbf': nbf,
                    'exp': exp,
                    'iss': issuer
                }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



