diff --git a/examples/vue-example/src/App.vue b/examples/vue-example/src/App.vue
index c7957c16..29c6339f 100644
--- a/examples/vue-example/src/App.vue
+++ b/examples/vue-example/src/App.vue
@@ -26,6 +26,9 @@
+
= {
[OPENLOGIN_NETWORK.CELESTE]: "openlogin",
};
+const EMAIL_FLOW = {
+ link: "link",
+ code: "code",
+};
+
export default defineComponent({
name: "App",
data() {
@@ -158,7 +166,9 @@ export default defineComponent({
BUILD_ENV: BUILD_ENV,
selectedOpenloginNetwork: OPENLOGIN_NETWORK.SAPPHIRE_DEVNET as OPENLOGIN_NETWORK_TYPE,
useMpc: false,
- selectedBuildEnv: BUILD_ENV.PRODUCTION
+ selectedBuildEnv: BUILD_ENV.PRODUCTION,
+ emailFlowType: EMAIL_FLOW.link,
+ EMAIL_FLOW: EMAIL_FLOW,
};
},
async created() {
@@ -206,6 +216,9 @@ export default defineComponent({
op.init();
return op;
},
+ showEmailFlow(): boolean {
+ return this.selectedLoginProvider === LOGIN_PROVIDER.EMAIL_PASSWORDLESS;
+ }
},
methods: {
async login() {
@@ -244,6 +257,13 @@ export default defineComponent({
};
}
+ if (this.emailFlowType) {
+ openLoginObj.extraLoginOptions = {
+ ...openLoginObj.extraLoginOptions,
+ flow_type: this.emailFlowType,
+ };
+ }
+
console.log(openLoginObj, "OPENLOGIN");
const data = await this.openloginInstance.login(openLoginObj);
if (data && data.privKey) {