def auth_headers(write_token): """Authentication headers (with a valid oauth2 token). It uses the token associated with the first user. """ return bearer_auth([], write_token)
def json_extra_auth_headers(json_headers, extra_token): """Authentication headers (with a valid oauth2 token). It uses the token associated with the first user. """ return bearer_auth(json_headers, extra_token)