@invorious/access-control-front
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Logo

Access Control Front


Logo_Npm Logo_PRs Logo_Chat Logo_License

Logo_Stars


Table of Contents
  1. Installation
  2. Usage
  3. Changelog

Installation

npm install @invorious/access-control-front

(back to top)

Usage

import { useLocalStrategy } from '@invorious/access-control-front';
export function ComponentReact() {
  const { login } = useLocalStrategy({
    baseURL: '/api/auth/local',
  });

  const handleSubmit = async () => {
    const username = 'invorious';
    const password = '12345678';
    const response = await login(username, password);
  };

  return 'Component of react';
}

For more examples, please refer to the Documentation

(back to top)

Changelog

Learn about the latest improvements.

(back to top)

Readme

Keywords

none

Package Sidebar

Install

npm i @invorious/access-control-front

Weekly Downloads

2

Version

0.0.8

License

none

Unpacked Size

97.3 kB

Total Files

12

Last publish

Collaborators

  • miguel-invorious
  • jesus-rojas
  • admin-invorious