# stitchz-client

> Stitchz.net javascript client to include in npm (node.js, commonjs, etc.) solutions

Latest version **1.0.1** (published 2018-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install stitchz-client
pnpm add stitchz-client
yarn add stitchz-client
bun add stitchz-client
```

## 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.1 |
| Published | 2018-03-06 |
| First published | 2017-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | stitchzdotnet |
| Maintainers | stitchzdotnet |
| Keywords | stitchz, oauth, oauth2, sso, authentication, authorization |

## Links

- npm: https://www.npmjs.com/package/stitchz-client
- Repository: https://github.com/stitchzdotnet/stitchz-client
- Homepage: http://www.stitchz.net/
- Issues: https://github.com/stitchzdotnet/stitchz-client/issues
- npm.io page: https://npm.io/package/stitchz-client

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-03-06
- 1.0.0 — 2017-12-31

## README

# stitchz-client

The [Stitchz.net](https://www.stitchz.net/Features) client for use on front end
web login pages.

## Install

```bash
$	npm install stitchz-client
```

## Usage / Examples

In a reactJS application, on your login page...

```js
componentDidMount() {
		StitchzClient.ready(() => {
			StitchzClient.AddIframeToDOM({
				ApiKey: '00112233445566778899',
				ReturnUrl: 'http://localhost:3000/oauth/authorize',
				Height: '280', // optional
				Width: '330', // optional
				MaxHeight: '768', // optional
				MaxWidth: '500', // optional
				AutoResize: true, // optional
				AppURL: 'https://example.stitchz.net',
				Version: 2,
				HtmlElementIdNameToAddIframeTo: 'stitchzsociallogin'
			});
		});
	} // componentDidMount
```

To directly add the client to html code...

```html
<div id="stitchzsociallogin">

</div>

<script src="/Scripts/stitchz.client.js" type="text/javascript"></script>
<script type="text/javascript">
    StitchzClient.ready(function (e) {
        StitchzClient.AddIframeToDOM({
            ApiKey: '00112233445566778899',
            ReturnUrl: 'http://localhost:3000/oauth/authorize',
            Height: '280', // optional
            Width: '330', // optional
            MaxHeight: '768', // optional
            MaxWidth: '500', // optional
            AutoResize: true, // optional
            AppURL: 'https://example.stitchz.net',
            Version: 2,
            HtmlElementIdNameToAddIframeTo: 'stitchzsociallogin'
        });
    });
</script>
```

## Documentation

For more information about [Stitchz](https://www.stitchz.com), including 
available profile properties, visit our [documentation page](https://www.stitchz.com/documentation).

## Author

[stitchzdotnet](http://github.com/stitchzdotnet)

## License

This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.

Copyright (c) 2017-2018 Stitchz <[https://www.stitchz.net/](https://www.stitchz.net/)>

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