Skip to content

Commit 22d43c0

Browse files
fix: add constants for backwards compatibility in OAuth module
1 parent 7ec16c6 commit 22d43c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/posit/connect/oauth/oauth.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
if TYPE_CHECKING:
1313
from ..context import Context
1414

15+
# Adding constants for backwards compatibility
16+
# Moving these could break existing code that imports them directly
17+
GRANT_TYPE = types.GRANT_TYPE
18+
19+
OAuthTokenType = types.OAuthTokenType
20+
1521

1622
def _get_content_session_token() -> str:
1723
"""Return the content session token.

0 commit comments

Comments
 (0)