Skip to content

Commit

Permalink
chore(deps): nestjs 11 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Shchepotin committed Feb 14, 2025
1 parent 9de6d8e commit 471a6ff
Show file tree
Hide file tree
Showing 22 changed files with 2,769 additions and 2,500 deletions.
11 changes: 0 additions & 11 deletions .install-scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import prompts from 'prompts';
import removeFacebookAuth from './scripts/remove-auth-facebook';
import removeGoogleAuth from './scripts/remove-auth-google';
import removeAppleAuth from './scripts/remove-auth-apple';
import removeTwitterAuth from './scripts/remove-auth-twitter';
import removeInstallScripts from './scripts/remove-install-scripts';
import removePostgreSql from './scripts/remove-postgresql';
import removeMongoDb from './scripts/remove-mongodb';
Expand Down Expand Up @@ -38,12 +37,6 @@ import removeRelationalPropertyGeneration from './scripts/property-generation-sc
message: 'Include Google auth?',
initial: true,
},
{
type: 'confirm',
name: 'isAuthTwitter',
message: 'Include Twitter auth?',
initial: true,
},
{
type: 'confirm',
name: 'isAuthApple',
Expand Down Expand Up @@ -89,10 +82,6 @@ import removeRelationalPropertyGeneration from './scripts/property-generation-sc
removeGoogleAuth();
}

if (!response.isAuthTwitter) {
removeTwitterAuth();
}

if (!response.isAuthApple) {
removeAppleAuth();
}
Expand Down
63 changes: 0 additions & 63 deletions .install-scripts/scripts/remove-auth-twitter.ts

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Belongs to the [bc boilerplates](https://bcboilerplates.com/) ecosystem
- [x] Config Service ([@nestjs/config](https://www.npmjs.com/package/@nestjs/config)).
- [x] Mailing ([nodemailer](https://www.npmjs.com/package/nodemailer)).
- [x] Sign in and sign up via email.
- [x] Social sign in (Apple, Facebook, Google, Twitter).
- [x] Social sign in (Apple, Facebook, Google).
- [x] Admin and User roles.
- [x] Internationalization/Translations (I18N) ([nestjs-i18n](https://www.npmjs.com/package/nestjs-i18n)).
- [x] File uploads. Support local and Amazon S3 drivers.
Expand Down
15 changes: 1 addition & 14 deletions docs/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
- [Auth via Apple](#auth-via-apple)
- [Auth via Facebook](#auth-via-facebook)
- [Auth via Google](#auth-via-google)
- [Auth via Twitter](#auth-via-twitter)
- [About JWT strategy](#about-jwt-strategy)
- [Refresh token flow](#refresh-token-flow)
- [Video example](#video-example)
Expand Down Expand Up @@ -41,7 +40,7 @@ sequenceDiagram

### Auth via external services or social networks flow

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

```mermaid
sequenceDiagram
Expand All @@ -66,8 +65,6 @@ For auth with external services or social networks you need:
POST /api/v1/auth/google/login
POST /api/v1/auth/twitter/login
POST /api/v1/auth/apple/login
```

Expand Down Expand Up @@ -124,16 +121,6 @@ For auth with external services or social networks you need:
GOOGLE_CLIENT_SECRET=abc
```

## Auth via Twitter

1. Set up your service on Twitter
1. Change `TWITTER_CONSUMER_KEY` and `TWITTER_CONSUMER_SECRET` in `.env`

```text
TWITTER_CONSUMER_KEY=abc
TWITTER_CONSUMER_SECRET=abc
```

## About JWT strategy

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.
Expand Down
2 changes: 1 addition & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Frontend (React, Next.js): <https://github.com/brocoders/extensive-react-boilerp
- [x] Config Service ([@nestjs/config](https://www.npmjs.com/package/@nestjs/config)).
- [x] Mailing ([nodemailer](https://www.npmjs.com/package/nodemailer)).
- [x] Sign in and sign up via email.
- [x] Social sign in (Apple, Facebook, Google, Twitter).
- [x] Social sign in (Apple, Facebook, Google).
- [x] Admin and User roles.
- [x] Internationalization/Translations (I18N) ([nestjs-i18n](https://www.npmjs.com/package/nestjs-i18n)).
- [x] File uploads. Support local and Amazon S3 drivers.
Expand Down
3 changes: 0 additions & 3 deletions env-example-document
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,4 @@ GOOGLE_CLIENT_SECRET=

APPLE_APP_AUDIENCE=[]

TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=

WORKER_HOST=redis://redis:6379/1
3 changes: 0 additions & 3 deletions env-example-relational
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,4 @@ GOOGLE_CLIENT_SECRET=

APPLE_APP_AUDIENCE=[]

TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=

WORKER_HOST=redis://redis:6379/1
Loading

0 comments on commit 471a6ff

Please sign in to comment.