Library reserved for Toside Studio projects. Developed to be integrated into projects NextJS.
This library has been developed to integrate only with the official Toside Studio projects. Install the library and use it in other projects download the Toside Studio from any responsibility.
The library is compatible with NextJS
npm i tosidestudio-account
This code must be insert in the file _app.js
and without the style the library can't work.
import 'tosidestudio-account/dist/style.css';
To use the method of the package import the library in the file.
import * as TosideAccount from 'tosidestudio-account'
Method to check if the user is logged or not.
if(TosideAccount.tosideLoginCheck()){
// User is logged
} else {
// User is not logged
}
To open the view with the login module call the method tosideLoginModule
TosideAccount.tosideLoginModule(secretKey)
Call the method tosideSignupModule
to show the view with the signup module
TosideAccount.tosideSignupModule(secretKey)
TosideAccount.tosideLogout()
TosideAccount.tosideGetInfoUser(secretKey).then(function(response){
console.log(response);
});
Barioglio Simone
© Toside Studio Sobe Inc. - www.tosidestudio.com