0.0.34 • Published 2 years ago

@flexpa/login v0.0.34

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
2 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

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago