UNPKG

@happykit/auth-email

Version:

- A `useAuth` hook which returns the current user - An optional `getServerSideAuth` for server-side rendering - HappyAuth is tiny - it adds only 4.6 kB to the first load JS - it adds less than 0.04 kB if you're transitioning from another page - Extremely

94 lines (93 loc) 2.4 kB
{ "name": "@happykit/auth-email", "version": "1.0.0-alpha.5", "main": "index.js", "types": "index.d.ts", "author": "Dominik Ferber <dominik.ferber+npm@gmail.com> (http://dferber.de/)", "license": "MIT", "sideEffects": false, "bin": { "auth-email": "cli.js" }, "scripts": { "test": "jest", "dev": "webpack --config webpack.config.js --watch", "prebuild": "cp ../README.md .", "build": "NODE_ENV=production webpack --config webpack.config.js", "pub": "yarn publish --access=public" }, "files": [ "api", "dist-app", "dist-cli", "pages", "scaffold", "cli.js", "index.d.ts", "index.js" ], "dependencies": { "@types/classnames": "2.2.10", "@types/cookie": "0.4.0", "@types/find-root": "1.1.1", "@types/fs-extra": "9.0.1", "@types/inquirer": "6.5.0", "@types/jsonwebtoken": "8.5.0", "@types/klaw": "3.0.1", "@types/lodash.mapvalues": "4.6.6", "@types/ms": "0.7.31", "@types/simple-oauth2": "2.5.3", "@xstate/fsm": "1.4.0", "@xstate/react": "0.8.1", "chalk": "4.1.0", "classnames": "2.2.6", "commander": "5.1.0", "cookie": "0.4.1", "find-root": "1.1.0", "fs-extra": "9.0.1", "inquirer": "7.2.0", "jsonwebtoken": "8.5.1", "klaw": "3.0.0", "lodash.mapvalues": "4.6.0", "ms": "2.1.2", "open": "7.0.4", "path": "0.12.7", "query-string": "6.13.1", "simple-oauth2": "3.4.0", "xstate": "4.10.0" }, "devDependencies": { "@fullhuman/postcss-purgecss": "2.3.0", "@testing-library/jest-dom": "5.10.1", "@testing-library/react": "10.4.1", "@types/test-listen": "1.1.0", "autoprefixer": "9.8.4", "clean-webpack-plugin": "3.0.0", "css-loader": "3.6.0", "isomorphic-unfetch": "3.0.0", "jest": "26.1.0", "jest-fetch-mock": "3.0.3", "next-server": "9.0.5", "postcss-import": "12.0.1", "postcss-loader": "3.0.0", "tailwindcss": "1.4.6", "test-listen": "1.1.0", "to-string-loader": "1.1.6", "ts-jest": "26.1.1", "ts-loader": "7.0.5", "typescript": "3.9.5", "webpack": "4.43.0", "webpack-cli": "3.3.12" }, "peerDependencies": { "faunadb": "^2.14.1", "next": "^9.4.0", "react": "^16.13.1" }, "jest": { "projects": [ "<rootDir>/src-app/jest.jsdom.config.js", "<rootDir>/src-app/jest.node.config.js" ] } }