Skip to content

Commit

Permalink
update auth.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmasken committed Jun 1, 2024
1 parent 5f0e637 commit ef8c6c0
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 537 deletions.
7 changes: 0 additions & 7 deletions canisters/ethlogin/Cargo.toml

This file was deleted.

Empty file removed canisters/ethlogin/src/lib.rs
Empty file.
18 changes: 0 additions & 18 deletions canisters/siwe_ic/Cargo.toml

This file was deleted.

17 changes: 0 additions & 17 deletions canisters/siwe_ic/siwe_ic.did

This file was deleted.

147 changes: 0 additions & 147 deletions canisters/siwe_ic/src/lib.rs

This file was deleted.

3 changes: 2 additions & 1 deletion dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"dependencies": [
"ckbtc_ledger"


],
"declarations": {
"node_compatibility": true
Expand Down Expand Up @@ -56,6 +55,8 @@
}
}
}


},
"defaults": {
"build": {
Expand Down
43 changes: 0 additions & 43 deletions frontend/App.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
<<<<<<< HEAD
<template class="font-lexend">

<main>

<div v-if="isReady">
<router-view v-if="isAuthenticated" />
<SignIn v-else />
</div>
<div v-else>
<div class="flex justify-center items-center h-screen">
=======
<script setup>
import { ref, watchEffect } from "vue";
import { useAuthStore } from "./store/auth";
Expand Down Expand Up @@ -108,7 +96,6 @@ const data = {
aria-modal="true"
>
<!-- Off-canvas menu backdrop, show/hide based on off-canvas menu state. -->
>>>>>>> workingpoint
<div
enter-class="transition ease-out duration-300"
enter-start-class="opacity-0"
Expand Down Expand Up @@ -1472,40 +1459,10 @@ const data = {
</main>
</template>

<<<<<<< HEAD
<script setup>
import "@rainbow-me/rainbowkit/styles.css";
import router from "./router"
import SignIn from "./components/auth/SignIn.vue"
import { storeToRefs } from "pinia"
import { useAuthStore } from "./store/auth"
import {Connect2ICProvider} from "@connect2ic/vue"
import "@connect2ic/core/style.css"

const authStore = useAuthStore()

const { isReady, isAuthenticated, authType } = storeToRefs(authStore)
if (isReady.value === false) {

if (authType.value === "internet-identity") {
console.log("internet-identity")
authStore.init()
} else if(authType.value === "connect2ic") {
console.log("connect2ic")
authStore.init()
} else {
console.log("siwe")
authStore.init()
}
// authStore.init()
} else {
router.push("/home/dashboard")
=======
<style scoped>
.fade-enter-active,
.fade-leave-active {
transition: opacity 300ms ease-out;
>>>>>>> workingpoint
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
Expand Down
84 changes: 0 additions & 84 deletions frontend/components/auth/AuthDropDown.vue

This file was deleted.

Loading

0 comments on commit ef8c6c0

Please sign in to comment.