Methods
Methods can be used after initialization of Wepin Provider SDK.
login
// Login using an OAuth provider
const oauthResult = await wepinProvider.login.loginWithOauthProvider({
provider: 'google',
clientId: 'your-client-id',
});
// Sign up and log in using email and password
const signUpResult = await wepinProvider.login.signUpWithEmailAndPassword(
'[email protected]',
'password123'
);
// Log in to Wepin
const wepinLoginResult = await wepinProvider.login.loginWepin(signUpResult);
// Get the currently logged-in user
const currentUser = await wepinProvider.login.getCurrentWepinUser();
// Logout
await wepinProvider.login.logout();getProvider
Parameters
Return value
Example
finalize
Parameters
Return value
Example
Last updated
Was this helpful?