Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

thaipbs-account-client

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thaipbs-account-client - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

2

package.json
{
"name": "thaipbs-account-client",
"description": "JavaScript library for seamlessly authorization between sites under ThaiPBS (thaipbs.or.th)",
"version": "0.1.0",
"version": "0.2.0",
"main": "src/index.js",

@@ -6,0 +6,0 @@ "devDependencies": {

@@ -38,4 +38,4 @@ # ThaiPBS Account JS

client.authorize()
.then(function(user) {
if (user) {
.then(function(data) {
if (data && data.user) {
// Hooray! The user is logged in.

@@ -42,0 +42,0 @@ }

@@ -11,3 +11,3 @@ import cookieTokenStore from './cookieTokenStore';

|| cookieTokenStore(this.options.cookieName || 'account_token');
this.frameController = new FrameController(this.options.iframeUrl || 'https://account.thaipbs.or.th');
this.frameController = new FrameController(this.options.iframeUrl || 'https://account.thaipbs.or.th?minimal=1');
this.frameController.initialize();

@@ -50,4 +50,4 @@ }

return this.frameController
.waitMessageOnce(['onLoggedIn', 'onRegistered'])
.then((data) => { return data.user; });
.waitMessageOnce(['onLoggedIn', 'onRegistered', 'onClose'])
.then((data) => { return data; });
})

@@ -54,0 +54,0 @@ .catch(reject);

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