Skip to content

Commit

Permalink
Clarify Bluesky PDS requirements and add a hint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Dec 19, 2024
1 parent 7a8ce42 commit 653415b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ Bluesky has a [complex](https://docs.bsky.app/docs/advanced-guides/oauth-client)
> [!WARNING]
> bsky.social's DPoP nonce changes frequently (maybe ever 10-30 seconds?). I have observed that if the nonce changes between a user requested a 2FA code and the code being entered, the server will reject the login attempt. Trying again will involve user interaction.
Resovling PDS servers for a user is involved, but you can start with `plc.directory`, which can sometimes work. The actual resolution, however, is beyond the scope of this library.

```swift
let responseProvider = URLSession.defaultProvider
Expand Down Expand Up @@ -289,7 +290,7 @@ let config = Authenticator.Configuration(

let authenticator = Authenticator(config: config)

// you can now use this authenticator to make requests against the user's PDS. Resolving the PDS, which is not be the same as the authentication server, is beyond the scope of this library.
// you can now use this authenticator to make requests against the user's PDS. Remember, the PDS will not be the same as the authentication server.
```

## Contributing and Collaboration
Expand Down

0 comments on commit 653415b

Please sign in to comment.