Socket
Socket
Sign inDemoInstall

auth0-lock-passwordless

Package Overview
Dependencies
Maintainers
7
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-lock-passwordless - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

bower.json
{
"name": "auth0-lock-passwordless",
"version": "1.0.0",
"version": "1.0.1",
"main": "build/auth0-lock-passwordless.js",

@@ -5,0 +5,0 @@ "ignore": [

@@ -0,1 +1,11 @@

## [1.0.1] - 2015-09-30
### Added
- Specific error message for invalid phone numbers.
### Fixed
- Playground styling.
## [1.0.0] - 2015-09-30

@@ -2,0 +12,0 @@

{
"name": "auth0-lock-passwordless",
"version": "1.0.0",
"version": "1.0.1",
"description": "Auth0 Lock Passwordless",

@@ -5,0 +5,0 @@ "author": "Auth0 <support@auth0.com> (http://auth0.com)",

@@ -45,3 +45,3 @@ # Lock Passwordless

<!-- Latest patch release (recommended for production) -->
<script src="http://cdn.auth0.com/js/lock-passwordless-1.0.0.min.js"></script>
<script src="http://cdn.auth0.com/js/lock-passwordless-1.0.1.min.js"></script>
```

@@ -48,0 +48,0 @@

@@ -31,3 +31,4 @@ export default {

"lock.request": "We're sorry, something went wrong when sending the {medium}",
"sms_provider_error": "We're sorry, something went wrong when sending the SMS"
"sms_provider_error": "We're sorry, something went wrong when sending the SMS",
"sms_provider_error.bad_phone_number": "The number {phoneNumber} is not a valid phone number"
},

@@ -34,0 +35,0 @@ signIn: {

@@ -139,3 +139,9 @@ import { Map } from 'immutable';

const lock = read(getEntity, "lock", id);
const errorMessage = l.ui.t(lock, ["error", "passwordless", error.error], {medium: "SMS", __textOnly: true}) || l.ui.t(lock, ["error", "passwordless", "lock.request"], {medium: "SMS", __textOnly: true})
let errorMessage;
if (error.error === "sms_provider_error" && (error.description || "").indexOf("(Code: 21211)") > -1) {
errorMessage = l.ui.t(lock, ["error", "passwordless", "sms_provider_error.bad_phone_number"], {phoneNumber: c.fullPhoneNumber(lock), __textOnly: true});
} else {
errorMessage = l.ui.t(lock, ["error", "passwordless", error.error], {medium: "SMS", __textOnly: true}) || l.ui.t(lock, ["error", "passwordless", "lock.request"], {medium: "SMS", __textOnly: true})
}
swap(updateEntity, "lock", id, l.setSubmitting, false, errorMessage);

@@ -142,0 +148,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc