0.0.8 • Published 1 year ago

@invorious/access-control-front v0.0.8

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Logo_Npm Logo_PRs Logo_Chat Logo_License

Logo_Stars

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.

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago