a310c7a471
CI / build (push) Failing after 13m30s
- LoginModal: 서버에서 구글 클라이언트 ID 수신 시에만 버튼 노출 - 웹/PC: Google Identity Services 렌더 버튼 - 앱(안드로이드): @capawesome/capacitor-google-sign-in 네이티브 버튼 - 네이티브/웹 모두 ID 토큰을 /api/auth/google 로 전달(aud=웹 클라이언트 ID) - auth 스토어/authApi 에 googleLogin·googleClientId 추가 - src/native/googleAuth.js 네이티브 래퍼 신규 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
39 lines
982 B
JavaScript
39 lines
982 B
JavaScript
import http from './http'
|
|
|
|
// 백엔드 /api/auth 엔드포인트와 매핑
|
|
export const authApi = {
|
|
signup(payload) {
|
|
return http.post('/auth/signup', payload)
|
|
},
|
|
signupEnabled() {
|
|
return http.get('/auth/signup-enabled')
|
|
},
|
|
login(payload) {
|
|
return http.post('/auth/login', payload)
|
|
},
|
|
// 구글 로그인/가입 — GIS에서 받은 ID 토큰 전달
|
|
googleLogin(payload) {
|
|
return http.post('/auth/google', payload)
|
|
},
|
|
googleClientId() {
|
|
return http.get('/auth/google-client-id')
|
|
},
|
|
logout() {
|
|
return http.post('/auth/logout')
|
|
},
|
|
me() {
|
|
return http.get('/auth/me')
|
|
},
|
|
changePassword(payload) {
|
|
return http.put('/auth/password', payload)
|
|
},
|
|
// 가입정보 변경 진입 전 비밀번호 재인증
|
|
verifyPassword(password) {
|
|
return http.post('/auth/verify-password', { password })
|
|
},
|
|
// 가입정보(이름/이메일) 변경
|
|
updateProfile(payload) {
|
|
return http.put('/auth/profile', payload)
|
|
},
|
|
}
|