You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
680 B
Vue
28 lines
680 B
Vue
<script setup lang="ts">
|
|
import PromiseResolver from "@/components/PromiseResolver.vue";
|
|
import { useRoute } from "vue-router";
|
|
|
|
const route = useRoute();
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<h1>Connect to Spotify</h1>
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<PromiseResolver :promise="$api.auth({
|
|
code: route.query.code,
|
|
state: route.query.state,
|
|
})">
|
|
<div class="alert alert-success">
|
|
Authorization completed
|
|
</div>
|
|
<router-link to="/me" class="btn btn-primary">
|
|
Go to my Profile
|
|
</router-link>
|
|
</PromiseResolver>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|