-
|
Hello, We're currently transitioning from a workaround where we wrapped the C library for NATS in Swift to directly using the nats.io Swift SDK for our project. Previously, we used a combination of a public key, a server URL, and a seed file (seed.nk) for NKey authentication and connection. This method is documented here: https://github.com/dmaulikr/NatsCSwift. As we're now adopting the Swift SDK, we're looking for advice on properly implementing NKey authentication using the mentioned assets. Specifically, we're interested in connecting to the server and sending messages with our existing credentials. Any examples or guidance on this would be greatly appreciated, as we aim to leverage the Swift SDK's capabilities fully without resorting to our previous workaround, which has led to occasional issues. Thank you for your assistance. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Hello! You can use crede which uses .creds file as a standard pattern, when generating creds from We can include option to provide those values separately. |
Beta Was this translation helpful? Give feedback.
-
|
@Jarema @mtmk, It is working now. Thank you for looking into this request. Thank you for support. |
Beta Was this translation helpful? Give feedback.
@dmaulikr we have a fix in #66 are you able to try that?
edit: just merged. it should be in main now