JWTãªã©ã®ã·ã¼ã¯ã¬ãããã¼ã®çæã¨é¡ãã¦ããããã©ã³ãã æååãçæããæ段ã¨ãã¦ãOKã§ãã Node.jsã§Crypto APIãç¨ãã¦çæ ã³ã³ã½ã¼ã«ã§æ¬¡ã®ã³ãã³ããå®è¡ããã
$ npm i --save @nestjs/passport passport passport-local @nestjs/jwt passport-jwt $ npm i --save-dev @types/passport-local @types/passport-jwt passportã¯ãnodejs ã§ãã使ããã¦ããèªè¨¼ã©ã¤ãã©ãªã passport-localã¯ãã¦ã¼ã¶ã¼åã¨ãã¹ã¯ã¼ãã§ãã°ã¤ã³ã§ããæ©è½ãå®è£ ã§ããã©ã¤ãã©ãªã passport-jwtã¯ãJWTã®æ¤è¨¼ãªã©ãããããã®ã©ã¤ãã©ãªã â» passport ã¯ãpassport-local ã passport-jwt ãªã©ã®ã©ã¤ãã©ãªãæ¦ç¥( strategy )ã¨è¨ãã®ã§ãè¦ãã¦ãããæ¹ãè¯ãããããã¾ããã Passport recognizes that each application has u
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}