.net SDK and BearerAuthCredentials

New to Square. Looking over the docs for the .net SDK, most examples appear to be dated a bit. I see that the AccessToken method is marked obsolete and says to use BearerAuthCredentials. I can’t find any examples of how to implement this in .net. Could you provide the couple lines of code to create a client?

Appreciate the help!

Think I got this working. Found someone else asking about a different sdk and used their example.

        var bearerAuthModel = new BearerAuthModel
            .Builder(accessToken)
            .Build();

        client = new SquareClient.Builder()
            .BearerAuthCredentials(bearerAuthModel)
            .Environment(environment)
            .Build();

Glad to hear that you got it to work. :slightly_smiling_face: