This package has been deprecated

Author message:

this package has been deprecated

opus-auth
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

SK authentication service connector

styled with prettier Greenkeeper badge Travis Coveralls Dev Dependencies

This is a package for handling communication with SK authentication service of Opus.

There are two functions available:

authorize(authorizeRequest);
 
export interface AuthorizeRequest {
    mobilestring;
    idcode?: string;
}
 
export interface AuthorizeResponse {
    sessionIdnumber;
    challengeIdstring;
}
 
getProfile(getProfileRequest);
 
export interface GetProfileRequest {
    sessionIdnumber;
    timeout?: number;
}
 
export interface GetProfileResponse {
    firstNamestring;
    lastNamestring;
    personalCodestring;
}

Usual flow would be calling authorize using mobile phone number. Then using the sessionId from the response to call getProfile. Default timeout for getProfile is 30 seconds. If profile is not successfully retrieved by then (eg. user doesn't input PIN1 on mobile device) 'pollingTimeout' error is thrown.

Readme

Keywords

none

Package Sidebar

Install

npm i opus-auth

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • kriips