'Restore padding based on token size.
:param token: token to restore padding on
:type token: six.text_type
:returns: token with correct padding'

@classmethod
def restore_padding(cls, token):

    mod_returned = (len(token) % 4)
    if mod_returned:
        missing_padding = (4 - mod_returned)
        token += ('=' * missing_padding)
    return token
