Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo in API authentication #17

Open
ConfusedVorlon opened this issue Nov 30, 2018 · 0 comments
Open

typo in API authentication #17

ConfusedVorlon opened this issue Nov 30, 2018 · 0 comments

Comments

@ConfusedVorlon
Copy link

current docs say that you authenticate like:

var token = "xxxx"
var client = UnsplashClient { request -> [String: String] in
    return [ "Authorization": "Bearer \(token)"]
}

this should be

var token = "xxxx"
var client = UnsplashClient { request -> [String: String] in
    return [ "Authorization": "Client-ID \(token)"]
}

not sure when this changed, but the using the Bearer format fails auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant