auth.utils

Module Contents

Functions

decode(payload)

Modified Base64 for URL variants exist, where the + and / characters of

encode(payload)

Modified Base64 for URL variants exist, where the + and / characters of

auth.utils.decode(payload)

Modified Base64 for URL variants exist, where the + and / characters of standard Base64 are respectively replaced by - and _.

See https://en.wikipedia.org/wiki/Base64#URL_applications

Parameters:

payload (str) –

Return type:

bytes

auth.utils.encode(payload)

Modified Base64 for URL variants exist, where the + and / characters of standard Base64 are respectively replaced by - and _.

See https://en.wikipedia.org/wiki/Base64#URL_applications

Parameters:

payload (Union[bytes, str]) –

Return type:

bytes