kakao login

오픈소스·2023년 1월 8일
0

NestJS Boilerplate

목록 보기
5/16
post-thumbnail

https://docs.nestjs.com/#alternatives

$ git clone https://github.com/nestjs/typescript-starter.git project
$ cd project
$ npm install
$ npm run start:dev
Subject: [PATCH] oauth
---
Index: src/app.controller.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/app.controller.ts b/src/app.controller.ts
--- a/src/app.controller.ts	(revision 36123209514494c9f0ae3e26bf7f51ea2bd12021)
+++ b/src/app.controller.ts	(date 1673145842362)
@@ -5,7 +5,7 @@
 export class AppController {
   constructor(private readonly appService: AppService) {}
 
-  @Get()
+  @Get('oauth')
   getHello(): string {
     return this.appService.getHello();
   }

https://developers.kakao.com/docs/latest/en/kakaologin/rest-api#request-code-request

https://kauth.kakao.com/oauth/authorize?client_id=${REST_API_KEY}&redirect_uri=${REDIRECT_URI}&response_type=code

https://developers.kakao.com/console/app/xxxxxx

  • REST_API_KEY: My Application > App Settings > App Keys > REST API key
  • REDIRECT_URI: My Application > Product Settings > Redirect URI (http://localhost:3000/oauth)

0개의 댓글