🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@agderposten/user-functions

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agderposten/user-functions

Easy access to AGM user functions. You probably need `@babel/polyfill` for this to work.

latest
Source
npmnpm
Version
1.3.6
Version published
Weekly downloads
2
100%
Maintainers
3
Weekly downloads
 
Created
Source

User functions

Easy access to AGM user functions. You probably need @babel/polyfill for this to work.

Fetch user information

import fetchUser from '@agderposten/user-functions';

fetchUser().then((user) => {
    console.log(user.isLoggedIn); // > true|false
});
import fetchUser from '@agderposten/user-functions';

const token = 'token';

fetchUser(token).then((user) => {
    console.log(user.isLoggedIn); // > true|false
});

FAQs

Package last updated on 26 Apr 2019

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