Skip to content

typo in API authentication #17

@ConfusedVorlon

Description

@ConfusedVorlon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions