Skip to content

Narin-Games/NarinGames-Consent-Screen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NarinGames-Consent-Screen

NarinGames Consent Screen (SSO - Login & Sign-up user)

How to use

Add the package to the project using the command below

npm i naringames-consent-screen

Then you can import the package as your desired file and use it

The login method can only contain parameters: otp or userpass

If you do not need a special method, skip sending this parameter

import { useNGCS, LoginByNGCS } from "naringames-consent-screen";
function App() {
  const { code, userId, loginMethod, OTPCode } = useNGCS();
  console.log(code);
  console.log(userId);
  console.log(loginMethod);
  console.log(OTPCode);
  return (
    <>
      <LoginByNGCS clientId={3} label={"login"} loginMethod={"otp"} />
    </>
  );
}

export default App;

Custom styling

You can use the default .ngcs-button class or set your own class in this way:

<LoginByNGCS clientId={3} className={"my-class"} />

About

NarinGames Consent Screen (SSO - Login & Sign-up user)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published