VlocityDCFirebaseRedirectStrategy

VlocityDCFirebaseRedirectStrategy

VlocityDCFirebaseRedirectStrategy is the component created as a reference implementation for sign-in or sign-up done using redirect mechanism.

Constructor

new VlocityDCFirebaseRedirectStrategy()

Source:
Example
Sample Usage -

Include the component in your template by adding <vlocity-dc-firebase-redirect-strategy> custom tag
   
<vlocity-dc-firebase-redirect-strategy></vlocity-dc-firebase-redirect-strategy>

You could also use it inside the slot for example-

<vlocity-dc-checkout>
 <div slot="dc-signIn">
  <vlocity-dc-firebase-redirect-strategy></vlocity-dc-firebase-redirect-strategy>
 </div>
</vlocity-dc-checkout>

KEY INFO -

 events fired : "vlocity-dc-sign-in"

 events registered : none

 Dependency - vlocity-dc-firebase-redirect-strategy is an independent component and has no dependency on any parent component.

Sample with slots -

<vlocity-dc-firebase-redirect-strategy>
   <span slot="{slot_name}">
     Custom HTML elements goes here
   </span>
</vlocity-dc-firebase-redirect-strategy>

List of available slots -

| Slot names                    | Dynamic     | Description                            | Impact                              |
|-------------------------------|-------------|----------------------------------------|-------------------------------------|
| dc-firebase-redirect-wrapper  | -           | Wrapper for firebase redirect template | Replaces component template         |
| dc-firebase-redirect-loader   | -           | Wrapper for loader                     | Replaces loader                     |
| dc-firebase-redirect-content  | -           | Wrapper for firebase redirect content  | Replaces template content           |

Extends

Methods

(async, static) doSignIn()

doSignIn method of VlocityDCSignin component overrided for custom signIn logic.
Source:

(static) serverRedirect()

Method called to redirect user to authentication server.
Source:

(static) signInGetInput()

signInGetInput method of VlocityDCSignin component overrided to create custom input.
Source: