Skip to content

Commit c5478e4

Browse files
committed
bumps version
1 parent 4eab8c8 commit c5478e4

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [unreleased]
1010

11+
## [0.16.3] - 2023-09-28
12+
1113
- Add Twitter provider for thirdparty login
1214
- Add `Cache-Control` header for jwks endpoint `/jwt/jwks.json`
1315
- Add `validity_in_secs` to the return value of overridable `get_jwks` recipe function.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
setup(
7272
name="supertokens_python",
73-
version="0.16.2",
73+
version="0.16.3",
7474
author="SuperTokens",
7575
license="Apache 2.0",
7676
author_email="[email protected]",

supertokens_python/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from __future__ import annotations
1515

1616
SUPPORTED_CDI_VERSIONS = ["3.0"]
17-
VERSION = "0.16.2"
17+
VERSION = "0.16.3"
1818
TELEMETRY = "/telemetry"
1919
USER_COUNT = "/users/count"
2020
USER_DELETE = "/user/remove"

supertokens_python/recipe/thirdparty/providers/custom.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
do_get_request,
1515
do_post_request,
1616
get_actual_client_id_from_development_client_id,
17-
is_using_oauth_development_client_id, DEV_KEY_IDENTIFIER, DEV_OAUTH_CLIENT_IDS,
17+
is_using_oauth_development_client_id,
18+
DEV_KEY_IDENTIFIER,
19+
DEV_OAUTH_CLIENT_IDS,
1820
)
1921

2022
from ..types import RawUserInfoFromProvider, UserInfo, UserInfoEmail
@@ -180,11 +182,10 @@ def merge_into_dict(src: Dict[str, Any], dest: Dict[str, Any]) -> Dict[str, Any]
180182
return res
181183

182184

183-
def is_using_development_client_id(client_id):
185+
def is_using_development_client_id(client_id: str) -> bool:
184186
return client_id.startswith(DEV_KEY_IDENTIFIER) or client_id in DEV_OAUTH_CLIENT_IDS
185187

186188

187-
188189
class GenericProvider(Provider):
189190
def __init__(self, provider_config: ProviderConfig):
190191
self.input_config = input_config = self._normalize_input(provider_config)

supertokens_python/recipe/thirdparty/providers/twitter.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616
from base64 import b64encode
1717
from typing import Any, Dict, Optional
1818
from supertokens_python.recipe.thirdparty.provider import RedirectUriInfo
19-
from supertokens_python.recipe.thirdparty.providers.utils import do_post_request, DEV_OAUTH_REDIRECT_URL, \
20-
get_actual_client_id_from_development_client_id
19+
from supertokens_python.recipe.thirdparty.providers.utils import (
20+
do_post_request,
21+
DEV_OAUTH_REDIRECT_URL,
22+
get_actual_client_id_from_development_client_id,
23+
)
2124
from ..provider import (
2225
Provider,
2326
ProviderConfigForClient,
@@ -28,7 +31,8 @@
2831

2932
from .custom import (
3033
GenericProvider,
31-
NewProvider, is_using_development_client_id,
34+
NewProvider,
35+
is_using_development_client_id,
3236
)
3337

3438

@@ -56,7 +60,9 @@ async def exchange_auth_code_for_oauth_tokens(
5660
# We need to do this because we don't call the original implementation
5761
# Transformation needed for dev keys BEGIN
5862
if is_using_development_client_id(self.config.client_id):
59-
client_id = get_actual_client_id_from_development_client_id(self.config.client_id)
63+
client_id = get_actual_client_id_from_development_client_id(
64+
self.config.client_id
65+
)
6066
redirect_uri = DEV_OAUTH_REDIRECT_URL
6167
# Transformation needed for dev keys END
6268

0 commit comments

Comments
 (0)