tosidestudio-account

6.1.0 • Public • Published

Toside Studio - Account Library

Library reserved for Toside Studio projects. Developed to be integrated into projects NextJS.

Security considerations

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.

Usage

The library is compatible with NextJS

Installation

npm i tosidestudio-account

Import CSS styles

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';

Import library

To use the method of the package import the library in the file.

import * as TosideAccount from 'tosidestudio-account'

Check login

Method to check if the user is logged or not.

if(TosideAccount.tosideLoginCheck()){
    // User is logged
} else {
    // User is not logged
}

Login method

To open the view with the login module call the method tosideLoginModule

TosideAccount.tosideLoginModule(secretKey)

Signup method

Call the method tosideSignupModule to show the view with the signup module

TosideAccount.tosideSignupModule(secretKey)

Logout

TosideAccount.tosideLogout()

Get info user

TosideAccount.tosideGetInfoUser(secretKey).then(function(response){
    console.log(response);
});

Credits

Barioglio Simone

License

© Toside Studio Sobe Inc. - www.tosidestudio.com

/tosidestudio-account/

    Package Sidebar

    Install

    npm i tosidestudio-account

    Weekly Downloads

    4

    Version

    6.1.0

    License

    none

    Unpacked Size

    46.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • tosidestudio