Skip to content

Commit 4b351c7

Browse files
2 parents 32e52d1 + 0a364c2 commit 4b351c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: hubspot/utils/oauth.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import urllib
22

33

4-
def get_auth_url(client_id, redirect_uri, scopes: tuple, optional_scopes=()):
4+
def get_auth_url(client_id, redirect_uri, scopes: tuple, optional_scopes=(), state=""):
55
return "https://app.hubspot.com/oauth/authorize?" + urllib.parse.urlencode(
66
{
77
"client_id": client_id,
88
"redirect_uri": redirect_uri,
99
"scope": " ".join(scopes),
1010
"optional_scope": " ".join(optional_scopes),
11+
"state": state,
1112
},
1213
quote_via=urllib.parse.quote,
1314
)

0 commit comments

Comments
 (0)