Closed miksh7 closed 1 month ago
@miksh7 Can you please tell me to which screenshot you are referring?
Both in the Quickstart doc and code the AccessToken
property is used on TokenResponse
which is a string. That seems correct so I'm curious where you saw the discrepancy.
Output of Console.WriteLine(tokenResponse.AccessToken) is just a token value:
eyJhbGciOiJSUzI1NiIsImtpZCI6IjMzRDE0NzhGRTExRDZEQzIxMjRDNEYxNDM4QjFCODI5IiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2xvY2FsaG9zdDo1MDAxIiwibmJmIjoxNzIwMDE0NzQ1LCJpYXQiOjE3MjAwMTQ3NDUsImV4cCI6MTcyMDAxODM0NSwic2NvcGUiOlsiYXBpMSJdLCJjbGllbnRfaWQiOiJjbGllbnQiLCJqdGkiOiI2QjFGMENBQ0JBQjc2OUU3NDUwNzlFNjY2ODk2ODczNCJ9.mtFqROCrfVeFCn-dk5UGiMFhH9rSBhNeD0AjqQBMkAHLtNefwjfDynrpUtoEqKvfcXIfU2SXphpKqTpMPluDhFTfJbXJ2WN75ypWd4NlmTpmz67lVukVUv8D4TEoqNJyQscWcjaCCIdWzvAxp8wdlj52qD2au83hUJ3_rrU7E9y_IYs-sWRU6Z1L6M0tllGzrYt2Micb2l3w3aZxHYn35E2GR3biY_HMM1Qjsv_S3TxZdKWZ-WD021i_x5K3Ghs0ozfiiGu7K1rNKT28-1-EnVxdULd_bkouCXODl2VxNrkMj3Gsa-tmpm6CVhQlKkDPFE5fPr3jViXQuc0gzTtEJQ
Screenshot in documentation contains response data in json format
I see. I think you are looking at the v6 documentation. There I see the problem. I've created a PR for this. Should be fixed soon. Thanks for reporting this!
This line of code below outputs only the AccessToken string which doesn't match the screenshot in documentation
Console.WriteLine(tokenResponse.AccessToken);
Should It be changed to
Console.WriteLine(tokenResponse.Json);
?