fix: create access token from storage

This commit is contained in:
Livio Amstutz 2020-02-27 17:06:32 +01:00
parent ddcf7076f8
commit 5e7e5ebe3a
8 changed files with 44 additions and 31 deletions

View file

@ -39,7 +39,7 @@ func CodeExchange(w http.ResponseWriter, r *http.Request, exchanger Exchanger) {
ExchangeRequestError(w, r, err)
return
}
resp, err := CreateTokenResponse(authReq, client, exchanger, true, tokenReq.Code)
resp, err := CreateTokenResponse(r.Context(), authReq, client, exchanger, true, tokenReq.Code)
if err != nil {
ExchangeRequestError(w, r, err)
return