# @aarmy/connect

> Connect with aarmy platform ang get authorization to get fitness sessions and videos

Latest version **1.0.2** (published 2022-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @aarmy/connect
pnpm add @aarmy/connect
yarn add @aarmy/connect
bun add @aarmy/connect
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-09-11 |
| First published | 2022-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Benallal soufiyan |
| Maintainers | beyonder.sb |
| Keywords | aarmy, react, vue, angular, javascript, svelt, popup, authorize, fitness videos and sessions |

## Links

- npm: https://www.npmjs.com/package/@aarmy/connect
- Repository: https://github.com/soufiyanbenallal/aarmy-connect
- Homepage: https://github.com/soufiyanbenallal/aarmy-connect#readme
- Issues: https://github.com/soufiyanbenallal/aarmy-connect/issues
- npm.io page: https://npm.io/package/@aarmy/connect

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-09-11
- 1.0.1 — 2022-09-11

## README

# connect with aarmy

Connect with aarmy platform ang get authorization to get fitness sessions and videos

## Get started

```
npm i @aarmy/connect
```

OR

```
yarn add @aarmy/connect
```

## Usage

```
// ...
import aarmy, { isAlreadyOpened} from "@aarmy/connect";


// ...


const openWindow = () => {
  /**
   * this response with return if window in the process to prevent multiple windows
   * @params {boolean} opened : if there any window or popup still open
   * @params {string} message : message if window still open you can use your own message as well
   */
    const res= isAlreadyOpened()
      if (res.opened) {
        return;
      }
    const url = 'http://aarmy.com/auth/authorize?client_id={cliend_id}'
    aarmy.connect(url).then(data=>{
      console.log('data', data);
      // whatever do when aarmy user authorized linking or not
    }).catch(err=>{
      console.log('err', err);
    })
}

```

---
_Source: https://npm.io/package/@aarmy/connect · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
