# cordova-plugin-ios-aswebauthenticationsession-api

> Cordova Plugin for iOS 12/13 ASWebAuthenticationSession API

Latest version **1.1.5** (published 2020-03-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-ios-aswebauthenticationsession-api
pnpm add cordova-plugin-ios-aswebauthenticationsession-api
yarn add cordova-plugin-ios-aswebauthenticationsession-api
bun add cordova-plugin-ios-aswebauthenticationsession-api
```

## 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.1.5 |
| Published | 2020-03-23 |
| First published | 2019-10-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | jwelker |
| Keywords | ecosystem:cordova, cordova-ios, aswebauthenticationsession, ios 12, ios 13, oauth, single sign on, privacy |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-ios-aswebauthenticationsession-api
- Repository: https://github.com/jwelker110/cordova-plugin-ios-aswebauthenticationsession-api
- Homepage: https://github.com/jwelker110/cordova-plugin-ios-aswebauthenticationsession-api.git#readme
- Issues: https://github.com/jwelker110/cordova-plugin-ios-aswebauthenticationsession-api.git/issues
- npm.io page: https://npm.io/package/cordova-plugin-ios-aswebauthenticationsession-api

## Alternatives

- [@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
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.1.5 (latest) — 2020-03-23
- 1.1.4 — 2020-02-22
- 1.1.3 — 2019-11-27
- 1.1.2 — 2019-11-27
- 1.1.1 — 2019-10-23
- 1.1.0 — 2019-10-23

## README

# cordova-plugin-ios-aswebauthenticationsession-api
Cordova Plugin for iOS 12 ASWebAuthenticationSession API. Originally forked from [rak13/cordova-plugin-ios-aswebauthenticationsession](https://github.com/rak13/cordova-plugin-ios-aswebauthenticationsession) and updated to address an [issue](https://github.com/rak13/cordova-plugin-ios-aswebauthenticationsession/issues/1) present after updating to iOS 13.

## usage
    window.plugins.ASWebAuthSession.start("myappurlscheme://dummy/staff", 'https://linktoopen.someplace.com/index.html',
    function(msg){
      console.log("Success ", msg);
    }, function (err) {
        console.log("Error " + msg);
    });

#### Additional information

iOS 13 introduced a requirement that ASWebAuthenticationSession needs a [presentationContextProvider](https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3237232-presentationcontextprovider) to provide a "display context in which the system can present an authentication session to the user."

The changes in this plugin should address an error that was thrown when trying to use ASWebAuthenticationSession after updating to iOS 13:
"Cannot start ASWebAuthenticationSession without providing presentation context. Set presentationContextProvider before calling -start."

---
_Source: https://npm.io/package/cordova-plugin-ios-aswebauthenticationsession-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
