🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

cordova-plugin-ios-aswebauthenticationsession-api

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-ios-aswebauthenticationsession-api

Cordova Plugin for iOS 12/13 ASWebAuthenticationSession API

1.1.5
latest
Version published
Weekly downloads
1.2K
40.29%
Maintainers
1
Weekly downloads
 
Created

cordova-plugin-ios-aswebauthenticationsession-api

Cordova Plugin for iOS 12 ASWebAuthenticationSession API. Originally forked from rak13/cordova-plugin-ios-aswebauthenticationsession and updated to address an issue 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 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."

FAQs

Package last updated on 23 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts