@redzone/taunt-logins-ui-react 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -552,7 +552,9 @@ function ModalView({ title, content, onClose }) {
552
552
 
553
553
  const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
554
554
  const [deets, setDeets] = react.useState();
555
- const taunt = new tauntLogins.TauntApi(tauntServiceEndpoint);
555
+ const taunt = react.useMemo(()=>new tauntLogins.TauntApi(tauntServiceEndpoint), [
556
+ tauntServiceEndpoint
557
+ ]);
556
558
  const [isLoading, setIsLoading] = react.useState(false);
557
559
  const loggedIn = !!deets;
558
560
  const otpMagicLogin = react.useCallback((email)=>{
package/dist/es/index.js CHANGED
@@ -552,7 +552,9 @@ function ModalView({ title, content, onClose }) {
552
552
 
553
553
  const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
554
554
  const [deets, setDeets] = useState();
555
- const taunt = new TauntApi(tauntServiceEndpoint);
555
+ const taunt = useMemo(()=>new TauntApi(tauntServiceEndpoint), [
556
+ tauntServiceEndpoint
557
+ ]);
556
558
  const [isLoading, setIsLoading] = useState(false);
557
559
  const loggedIn = !!deets;
558
560
  const otpMagicLogin = useCallback((email)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redzone/taunt-logins-ui-react",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "main": "./dist/es/index.js",
6
6
  "module": "./dist/es/index.js",
@@ -31,6 +31,7 @@
31
31
  "lint": "eslint .",
32
32
  "prenpm:publish": "npm run build",
33
33
  "npm:publish": "npm publish --access public",
34
+ "fb:login": "firebase login --reauth",
34
35
  "fb:deploy": "firebase deploy --only hosting:dev"
35
36
  },
36
37
  "peerDependencies": {