JWT Authentication in Nest.js

 


التثبيتات:

$ npm install jsonwebtoken
$ npm i --save @nestjs/passport passport
  1. npm install passport-jwt
    
npm install 
  1. npm install @types/passport-jwt
    
@types/passport-jw

t
npm install @types/passport-jwt
npm uninstall @nestjs/config && npm install @nestjs/config

npm install @types/passport-jwt


المراجع الهامة:
https://github.com/gabrielmcreynolds/NestjsJwtAuthTutorial/blob/master/src/auth/strategies/jwt.strategy.ts

https://randomkeygen.com/


نسخة سابقة من AAP:

https://github.com/abu18saud/aap-backend/blob/69f822445ce138e7014c19b3a65217e18bc4a945/src/auth/entities/auth.entity.ts


حلول للأخطاء:
https://stackoverflow.com/questions/71489564/module-nestjs-config-has-no-exported-member-configmodule


















































تعليقات

المشاركات الشائعة من هذه المدونة

ngx-extended-pdf-viewer

how to getting access token for https://fcm.googleapis.com/v1/projects/al-ayahya-co/messages:send for angular and backend nestjs

طريقة تفعيل زر Inline Keyboard في Telegram Bot