@invorious/access-control-front
v0.0.8
Published
[Comment: Environments by Logo]: # [Logo_Npm]: https://img.shields.io/badge/NPM-v0.0.0-blue [Logo_PRs]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg [Logo_Chat]: https://img.shields.io/badge/Chat-Slack-7289da.svg [Logo_License]: https://img.sh
Downloads
12
Keywords
Readme
npm install @invorious/access-control-front
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
Learn about the latest improvements.