OAuth2 (1) 썸네일형 리스트형 [GO] Todo list - Google Oauth2 Google Oauth 관련 참고 자료 [https://unsungit.tistory.com/98?category=1060987] [https://unsungit.tistory.com/99?category=1060987] session 관련 패키지 go get github.com/gorilla/sessions 환경변수에 "SESSION_KEY" 추가할것. 키는 임의의 값으로 입력하면 됨. 이 키값으로 session 정보를 암호화하는 키로 사용된며, 차후에 변경가능. 기본구조 "/" 로 접속하면 session 정보가 없으므로 singin.html 로 이동 이후 부터는 "http://localhost:3000/todo.html" 페이지로 자동 이동한다. 특이사항) 로그인시 "/auth/google/login.. 이전 1 다음