|
@@ -10,7 +10,7 @@ window.fbAsyncInit = () => {
|
|
|
version: 'v13.0',
|
|
|
})
|
|
|
|
|
|
- FB.getLoginStatus(statusChangeCallback)
|
|
|
+ // FB.getLoginStatus(statusChangeCallback)
|
|
|
}
|
|
|
|
|
|
function statusChangeCallback(response: any) {
|
|
@@ -28,7 +28,7 @@ function testAPI() {
|
|
|
FB.api('/me?fields=id,name,email', function (response: any) {
|
|
|
console.log(response)
|
|
|
location.href =
|
|
|
- 'https://t.ptcrepair.com.au/user/facebook/callback?name=' +
|
|
|
+ 'https://test.ptcrepair.com.au/api/user/facebook/callback?name=' +
|
|
|
response.name +
|
|
|
'&email=' +
|
|
|
response.email
|
|
@@ -40,7 +40,7 @@ export function FBLogin() {
|
|
|
}
|
|
|
|
|
|
export function AppleLogin() {
|
|
|
- location.href = 'https://t.ptcrepair.com.au/user/apple/login'
|
|
|
+ location.href = 'https://test.ptcrepair.com.au/api/user/apple/login'
|
|
|
}
|
|
|
|
|
|
export async function renderGoogleLoginButton(parent: HTMLElement) {
|
|
@@ -57,7 +57,7 @@ window.addEventListener('load', () => {
|
|
|
google.accounts.id.initialize({
|
|
|
client_id:
|
|
|
'745604014349-1dthf8ni49l7313opmcicak5978evvfi.apps.googleusercontent.com',
|
|
|
- login_uri: 'https://t.ptcrepair.com.au/user/google/callback',
|
|
|
+ login_uri: 'https://test.ptcrepair.com.au/api/user/google/callback',
|
|
|
ux_mode: 'redirect',
|
|
|
})
|
|
|
gTask.done()
|