···104104 case Dict.get "code" (Url.queryDictionary url) of
105105 Just code ->
106106 Dropbox.exchangeAuthCode
107107- (GotDropboxTokens Dropbox.Code)
107107+ ExchangeDropboxAuthCode
108108 url
109109 code
110110···146146 CancelFlow ->
147147 cancelFlow
148148149149+ ExchangeDropboxAuthCode a ->
150150+ exchangeDropboxAuthCode a
151151+149152 GetStarted ->
150153 startFlow
151151-152152- GotDropboxTokens a b ->
153153- gotDropboxTokens a b
154154155155 NotAuthenticated ->
156156 notAuthenticated
···319319 Return.singleton model
320320321321322322-gotDropboxTokens : Dropbox.TokenFlow -> Result Http.Error Dropbox.Tokens -> Manager
323323-gotDropboxTokens flow result model =
324324- case ( flow, result ) of
325325- ( Dropbox.Code, Ok tokens ) ->
322322+exchangeDropboxAuthCode : Result Http.Error Dropbox.Tokens -> Manager
323323+exchangeDropboxAuthCode result model =
324324+ case result of
325325+ Ok tokens ->
326326 case tokens.refreshToken of
327327 Just refreshToken ->
328328 Nothing
···342342 |> showNotificationWithModel
343343 (Lens.replace lens model Unauthenticated)
344344345345- ( Dropbox.Refresh, Ok tokens ) ->
346346- -- TODO
347347- Return.singleton model
348348-349349- ( _, Err err ) ->
345345+ Err err ->
350346 []
351347 |> Notifications.errorWithCode
352348 "Failed to authenticate with Dropbox"