0.0.34 • Published 4 years ago

@flexpa/login v0.0.34

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
4 years ago

📱flexpa/login

<FlexpaLogin> is the fastest way to verify health plans

example

  • Uses storybook for previewing and testing components
  • Type interfaces for each component
  • Uses rollup to bundle each component's code and types (cjs and esm)
  • Automatic deployments of new versions to GitHub's package manager with GitHub actions

Try it yourself

You can quickly add a health plan login to any React application.

Install @flexpa/login:

npm install --save @flexpa/login

Import the component and render it on a page:

import { FlexpaLogin } from "@flexpa/login"

export default <FlexpaLogin sandbox />

Run your React project, and the sandbox login flow will render with the settings from sandbox.flexpa.com our public testing environment.

After logging in - your app will receive a signed FlexpaJWT. You will use this to request health plan data. Learn more about flexpa/login at sandbox.flexpa.com.

Development Setup

  1. npm install
  2. To build and start storybook, run npm run dev.

Running @flexpa/login in another app

If you have changes locally in @flexpa/login and you want to test them in another app (@flexpa/demo for example), we can use yalc to do this.

Install yalc:

npm i yalc -g

In @flexpa/login

yalc publish

In @flexpa/demo

yalc link @flexpa/login

# when you are done
yalc remove @flexpa/login
# or yalc remove --all

If you make more changes to @flexpa/login, you will need to re-push these changes to your desired app. You can do this by running yalc publish --push. If you don't see your changes, you may have to restart the dev server (npm run dev).

Reference

Components

ComponentPurpose
<FlexpaLogin />An single identity provider (Humana, Cigna, etc.). Designed to be rendered in a list.
<DigitalInsuranceCard />An example of a CARIN DigitalInsuranceCard. Currently only works with Humana sandbox patient HUser00002.
<PatientCard />A way to view information about the currently logged in Patient.

FAQ

TopicAnswerComments
RuntimeBrowserJSX/React
LintingESLintnpm run lint
BuildsRollupnpm run build-rollup
CSSTailwindAccess to https://tailwindui.com/
DevStorybooknpm run dev
Localhost3000Default is http://localhost:3000/
0.0.34

4 years ago

0.0.30

4 years ago

0.0.31

4 years ago

0.0.32

4 years ago

0.0.33

4 years ago

0.0.29

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago