Name | Type | Required | Default |
---|---|---|---|
firebase | firebase | yes | |
authDomain | string | yes | |
apiKey | string | yes | |
databaseURL | string | yes | |
projectId | string | yes | |
messagingSenderId | string | no | |
storageBucket | string | no | |
children | React Node | no | |
render | () => ReactNode | no |
Name | Type | Required | Default |
---|---|---|---|
children | ({authState}) => ReactNode | no | |
render | ({authState}) => ReactNode | no |
Name | Type |
---|---|
isSignedIn | boolean |
providerId | string enum : none or anonymous or google.com or facebook.com .... |
user | user or null |
Only renders when a user is authenticated
Name | Type | Required | Default |
---|---|---|---|
children | ({authState}) => ReactNode | no | |
render | ({authState}) => ReactNode | no |
Only renders when a user is authenticated AND when the filter function passed as prop returns true
Name | Type | Required | Default |
---|---|---|---|
children | ({authState}) => ReactNode | no | |
render | ({authState}) => ReactNode | no | |
filter | (authState) => boolean |
Only renders when a user is authenticated OR when the filter function passed as prop returns true
Name | Type | Required | Default |
---|---|---|---|
children | ({authState}) => ReactNode | no | |
render | ({authState}) => ReactNode | no | |
filter | (authState) => boolean |
Only renders when a user is unauthenticated
Name | Type | Required | Default |
---|---|---|---|
children | ({authState}) => ReactNode | no | |
render | ({authState}) => ReactNode | no |