Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

oriuserauth

vahidHossaini1MIT0.0.9

origamicore user authentication

origamicore, user, authentication

readme

Install

  • origamicore Doc

    Config

      {
              context: 'default',
              requirePhone: false,
              confirmEmail: true,
              confirmPhone: false,
              linkToSmsAuth: true,
              linkToOauth: true,
              superadmin: {
                  username: '{admiuser}',
                  password: '{admin}'
              },
              emailNotifyContext: 'gmail',
              emailNotifyTemplate: 'login',
              forgetPasswordTemplate: 'forgetEmail',
              notifyContext: 'sms',
              notifyTemplate: 'confirmeSms',
              twoStepEmail: false,
              twoStepSms: true,
              isActive: true
      }

External Services

http://localhost:4702/userAuth/isLogin
http://localhost:4702/userAuth/logout
http://localhost:4702/userAuth/login?username=vahid&password=1212
http://localhost:4702/userAuth/verify?code=12333
http://localhost:4702/userAuth/forgetPassword?name=vahid.hossaini@gmail.com
http://localhost:4702/userAuth/resetPassword?code=111&password=1213
http://localhost:4702/userAuth/changePassword?oldPassword=1213&newPassword=1212
http://localhost:4702/userAuth/twoStep?code=1499
For Register Post 
http://localhost:4702/userAuth/register
{"userData":{"username":"{yourusername}","password":"{your password}","email":"{email}","phone":"{your phone}"}}

http://localhost:4702/userAuth/save
{"userData":{"username":"{yourusername}","password":"{your password}","email":"{email}","phone":"{your phone}"}}