Skip to content

Commit

Permalink
Merge pull request #46 from loryhuz/master
Browse files Browse the repository at this point in the history
fix encoding issue
  • Loading branch information
mpclarkson committed Mar 25, 2024
2 parents 2f85579 + 30fb7c9 commit 9fab94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/StravaSwift/StravaClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ extension StravaClient: ASWebAuthenticationPresentationContextProviding {
} else {
if #available(iOS 12.0, *) {
let webAuthenticationSession = ASWebAuthenticationSession(url: Router.webAuthorizationUrl,
callbackURLScheme: config?.redirectUri,
callbackURLScheme: config?.redirectUri.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed),
completionHandler: { (url, error) in
if let url = url, error == nil {
self.handleAuthorizationRedirect(url, result: result)
Expand Down

0 comments on commit 9fab94b

Please sign in to comment.