npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mimoo/react-auth

v0.1.0

Published

> The simplest way to add authentication to Mimoo React apps.

Downloads

2

Readme

Mimoo Auth · PRs Welcome

The simplest way to add authentication to Mimoo React apps.

A simple React component to facilitate authentication via AWS Cognito. Handles users, login forms, redirects, sharing state between components, etc.

Installing / Getting started

This library is available as a NPM package, so you can install it as you would any other package:

$ yarn add @mimoo/react-auth

Developing

Built With

WIP

Prerequisites

WIP

Setting up Dev

You need to clone the project in order to start developing the project further:

$ git clone https://github.com/mimoo-tech/auth-web.git
$ cd auth-web/

After that you need to make sure you have yarn and webpack installed. Otherwise, you must read the following guides:

  1. Yarn
  2. Webpack

To run the project locally and import the component into another project (which you created) the following steps must be followed (assuming yourapp and @mimoo/react-auth are sibling folders):

  1. From the @mimoo/react-auth folder run the following commands:
$ yarn link --global-folder ../yourapp/node_modules/react
$ yarn start
  1. And from the yourapp folder run the following commands:
$ yarn link "@mimoo/react-auth-web"
$ yarn start

Note: if you have a duplicate react problem using hooks, take a look at this link

Building

WIP

Deploying / Publishing

Build

Run the following command:

$ yarn build

Create an npm account

In order to publish an npm package, you will need an npm account, which makes sense. If you do not have one, go ahead and create an account.

Login to npm

Once you have created your account, login using your account credentials:

$ npm login --scope=@mimoo

You should get a message similar to this:

$ npm login
$ Username: <your-username>
$ Password:
$ Email: (this IS public) <your-email>
$ Logged in as <your-username> on https://registry.npmjs.org/.

Needless to say that <your-username> and <your-email> will be your own username and email address.

Package version

You shouldn't have to worry about managing the version number manually. There is an npm command for bumping those numbers up:

$ npm version patch # 0.1.0 -> 0.1.1
$ npm version minor # 0.2.6 -> 0.3.0
$ npm version major # 2.1.4 -> 3.0.0

Check Versioning and npm version for more information.

Publish Now

Run the following command to publish this package:

$ npm publish --access public

Versioning

We can maybe use SemVer for versioning. For the versions available, see the link to tags on this repository.

Configuration

WIP

Tests

WIP

Style guide

WIP

Api Reference

Auth

| Props | Type | Default value | Description | | ------------ | -------- | ------------- | --------------------------------------------------------- | | onSubmit | Function | undefined | A callback that returns an object with status and values. |

SignUp

| Props | Type | Default value | Description | | ---------- | ------- | ------------- | ---------------------------------------------------- | | show | Boolean | false | When true the form will show the sign up button. | | fields | Object | undefined | An object with all fields properties. |

Field

| Props | Type | Description | | --------- | ------ | ----------------------- | | name | String | Field name. | | label | String | A label for this field. | | type | String | A type for this input. |

A simple sign up process:

import { SignUp } from '@mimoo/react-auth-web';

...

const fields = [{
    name: 'name',
    label: 'Seu nome',
    type: 'text'
}]

<SignUp fields={fields} />

...

WIP

Examples

Full form

A example with all fields and validation.

Edit Mimoo Auth Component

Licensing

WIP