Skip to content

Commit 471a6ff

Browse files
committed
chore(deps): nestjs 11 upgrade
1 parent 9de6d8e commit 471a6ff

22 files changed

+2769
-2500
lines changed

.install-scripts/index.ts

-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import prompts from 'prompts';
22
import removeFacebookAuth from './scripts/remove-auth-facebook';
33
import removeGoogleAuth from './scripts/remove-auth-google';
44
import removeAppleAuth from './scripts/remove-auth-apple';
5-
import removeTwitterAuth from './scripts/remove-auth-twitter';
65
import removeInstallScripts from './scripts/remove-install-scripts';
76
import removePostgreSql from './scripts/remove-postgresql';
87
import removeMongoDb from './scripts/remove-mongodb';
@@ -38,12 +37,6 @@ import removeRelationalPropertyGeneration from './scripts/property-generation-sc
3837
message: 'Include Google auth?',
3938
initial: true,
4039
},
41-
{
42-
type: 'confirm',
43-
name: 'isAuthTwitter',
44-
message: 'Include Twitter auth?',
45-
initial: true,
46-
},
4740
{
4841
type: 'confirm',
4942
name: 'isAuthApple',
@@ -89,10 +82,6 @@ import removeRelationalPropertyGeneration from './scripts/property-generation-sc
8982
removeGoogleAuth();
9083
}
9184

92-
if (!response.isAuthTwitter) {
93-
removeTwitterAuth();
94-
}
95-
9685
if (!response.isAuthApple) {
9786
removeAppleAuth();
9887
}

.install-scripts/scripts/remove-auth-twitter.ts

-63
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Belongs to the [bc boilerplates](https://bcboilerplates.com/) ecosystem
3838
- [x] Config Service ([@nestjs/config](https://www.npmjs.com/package/@nestjs/config)).
3939
- [x] Mailing ([nodemailer](https://www.npmjs.com/package/nodemailer)).
4040
- [x] Sign in and sign up via email.
41-
- [x] Social sign in (Apple, Facebook, Google, Twitter).
41+
- [x] Social sign in (Apple, Facebook, Google).
4242
- [x] Admin and User roles.
4343
- [x] Internationalization/Translations (I18N) ([nestjs-i18n](https://www.npmjs.com/package/nestjs-i18n)).
4444
- [x] File uploads. Support local and Amazon S3 drivers.

docs/auth.md

+1-14
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
- [Auth via Apple](#auth-via-apple)
1010
- [Auth via Facebook](#auth-via-facebook)
1111
- [Auth via Google](#auth-via-google)
12-
- [Auth via Twitter](#auth-via-twitter)
1312
- [About JWT strategy](#about-jwt-strategy)
1413
- [Refresh token flow](#refresh-token-flow)
1514
- [Video example](#video-example)
@@ -41,7 +40,7 @@ sequenceDiagram
4140

4241
### Auth via external services or social networks flow
4342

44-
Also you can sign up via another external services or social networks like Apple, Facebook, Google, and Twitter.
43+
Also you can sign up via another external services or social networks like Apple, Facebook and Google.
4544

4645
```mermaid
4746
sequenceDiagram
@@ -66,8 +65,6 @@ For auth with external services or social networks you need:
6665
6766
POST /api/v1/auth/google/login
6867
69-
POST /api/v1/auth/twitter/login
70-
7168
POST /api/v1/auth/apple/login
7269
```
7370

@@ -124,16 +121,6 @@ For auth with external services or social networks you need:
124121
GOOGLE_CLIENT_SECRET=abc
125122
```
126123

127-
## Auth via Twitter
128-
129-
1. Set up your service on Twitter
130-
1. Change `TWITTER_CONSUMER_KEY` and `TWITTER_CONSUMER_SECRET` in `.env`
131-
132-
```text
133-
TWITTER_CONSUMER_KEY=abc
134-
TWITTER_CONSUMER_SECRET=abc
135-
```
136-
137124
## About JWT strategy
138125

139126
In the `validate` method of the `src/auth/strategies/jwt.strategy.ts` file, you can see that we do not check if the user exists in the database because it is redundant, it may lose the benefits of the JWT approach and can affect the application performance.

docs/introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Frontend (React, Next.js): <https://github.com/brocoders/extensive-react-boilerp
1515
- [x] Config Service ([@nestjs/config](https://www.npmjs.com/package/@nestjs/config)).
1616
- [x] Mailing ([nodemailer](https://www.npmjs.com/package/nodemailer)).
1717
- [x] Sign in and sign up via email.
18-
- [x] Social sign in (Apple, Facebook, Google, Twitter).
18+
- [x] Social sign in (Apple, Facebook, Google).
1919
- [x] Admin and User roles.
2020
- [x] Internationalization/Translations (I18N) ([nestjs-i18n](https://www.npmjs.com/package/nestjs-i18n)).
2121
- [x] File uploads. Support local and Amazon S3 drivers.

env-example-document

-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,4 @@ GOOGLE_CLIENT_SECRET=
4949

5050
APPLE_APP_AUDIENCE=[]
5151

52-
TWITTER_CONSUMER_KEY=
53-
TWITTER_CONSUMER_SECRET=
54-
5552
WORKER_HOST=redis://redis:6379/1

env-example-relational

-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,4 @@ GOOGLE_CLIENT_SECRET=
5757

5858
APPLE_APP_AUDIENCE=[]
5959

60-
TWITTER_CONSUMER_KEY=
61-
TWITTER_CONSUMER_SECRET=
62-
6360
WORKER_HOST=redis://redis:6379/1

0 commit comments

Comments
 (0)