def process_auth(code): """ The second step in the authorization chain. After the first step finished, a code was passed back to the website from google. This function exchanges that code for credentials, including a refresh token that can be used to get credentials without further authorization. It stores the credentials and returns them to the caller. """ credentials=FLOW.step2_exchange(code) storage = Storage(CALENDAR_DATA) storage.put(credentials) return credentials
def process_auth(code): """ The second step in the authorization chain. After the first step finished, a code was passed back to the website from google. This function exchanges that code for credentials, including a refresh token that can be used to get credentials without further authorization. It stores the credentials and returns them to the caller. """ credentials = FLOW.step2_exchange(code) storage = Storage(CALENDAR_DATA) storage.put(credentials) return credentials
def process_auth(code): credentials = FLOW.step2_exchange(code) storage = Storage(CALENDAR_DATA) storage.put(credentials) return credentials
def process_auth(code): credentials=FLOW.step2_exchange(code) storage = Storage(CALENDAR_DATA) storage.put(credentials) return credentials