관리-도구
편집 파일: api_jwt.cpython-37.opt-1.pyc
B �E�`� � @ s� d dl Z d dlmZ d dlmZmZ d dlmZmZ d dlm Z m Z mZmZm Z mZ ddlmZ ddlmZmZmZmZmZmZmZ G d d � d �Ze� ZejZejZejZdS )� N)�timegm)�Iterable�Mapping)�datetime� timedelta)�Any�Dict�List�Optional�Type�Union� )�api_jws)�DecodeError�ExpiredSignatureError�ImmatureSignatureError�InvalidAudienceError�InvalidIssuedAtError�InvalidIssuerError�MissingRequiredClaimErrorc @ s� e Zd Zd dd�Zeeeeee e f f d�dd��Z d!eeef eeee ee ej ed�d d �Zd"eee e eeeef d�d d�Zd#eee e eeeef d�dd�Zd$dd�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� ZdS )%�PyJWTNc C s |d kri }| � � |�| _d S )N)�_get_default_options�options)�selfr � r �</opt/alt/python37/lib/python3.7/site-packages/jwt/api_jwt.py�__init__ s zPyJWT.__init__)�returnc C s ddddddg d�S )NT)�verify_signature� verify_exp� verify_nbf� verify_iat� verify_aud� verify_iss�requirer r r r r r s zPyJWT._get_default_options�HS256)�payload�key� algorithm�headers�json_encoderr c C st t |t�std��|�� }x0dD ](}t |�|�t�r t|| �� �||<