Skip to content

Commit 53c7b10

Browse files
committed
Fix bug when doing OAuth2 code flow with team-linked app.
1 parent 2ee4651 commit 53c7b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dropbox.Api/DropboxOauth2Helper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public sealed class OAuth2Response
488488
/// <param name="tokenType">The token_type.</param>
489489
internal OAuth2Response(string accessToken, string uid, string state, string tokenType)
490490
{
491-
if (string.IsNullOrEmpty(accessToken) || string.IsNullOrEmpty(uid))
491+
if (string.IsNullOrEmpty(accessToken) || uid == null)
492492
{
493493
throw new ArgumentException("Invalid OAuth 2.0 response, missing access_token and/or uid.");
494494
}

0 commit comments

Comments
 (0)