Skip to content

Commit

Permalink
fix: use twitter as twitter providers Id (#746)
Browse files Browse the repository at this point in the history
* fix: use twitter as twitter providers Id

* update changelog and bump version

* update changelog

* incorporate suggested changes

* update code
  • Loading branch information
Chakravarthy7102 authored Sep 28, 2023
1 parent 3d1cabf commit be1dcc1
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Updated dev/start script in netlify example

## [0.35.4] - 2023-09-28

### Fixes

- fixed using `twitter` as id by default in twitter provider.

## [0.35.3] - 2023-09-26

### Added
Expand Down
5 changes: 2 additions & 3 deletions lib/build/thirdparty-shared.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build/version.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions lib/ts/recipe/thirdparty/providers/twitter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,16 @@ export default class Twitter extends Provider {
* Constructor.
*/
constructor(config?: TwitterProviderConfig) {
let id = "x";
let name = "X";

const normalisedUseLegacyTwitterLogo = config?.useLegacyTwitterLogo === true;

if (normalisedUseLegacyTwitterLogo) {
id = "twitter";
name = "Twitter";
}

super({
id,
id: "twitter",
name,
...config,
});
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
export const package_version = "0.35.3";
export const package_version = "0.35.4";
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "supertokens-auth-react",
"version": "0.35.3",
"version": "0.35.4",
"description": "ReactJS SDK that provides login functionality with SuperTokens.",
"main": "./index.js",
"engines": {
Expand Down

0 comments on commit be1dcc1

Please sign in to comment.