Social Login Users (Google) in Tutor LMS for React Native App
-
I’m currently building an Android app with Expo React Native and have successfully implemented JWT-based authentication for normal WordPress users by sending their email and password to the
/jwt-auth/v1/token
endpoint as follows:const API_URL = 'https://workshop.onlinevideobooks.com/wp-json'
export const login = async (email, password) => {
try {
const response = await axios.post(${API_URL}/jwt-auth/v1/token
, {
'username': email,
'password': password,
});
return response.data;
} catch (e) {
console.log(e);
}
};Now, I’m integrating Tutor LMS Social Login, and users signing in with Google don’t have traditional passwords. How can I programmatically obtain a JWT token for these social login users, so I can authenticate them in my native mobile app just like I do with normal (password-based) users?
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.