Skip to content

Commit

Permalink
better oauth page
Browse files Browse the repository at this point in the history
  • Loading branch information
archiewood committed Oct 29, 2024
1 parent 4547cc4 commit bb19e7c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/pages/oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sidebar_link: false
---

<script>
let authCode;
let authCode = 'pending';
onMount(() => {
authCode = new URLSearchParams($page.url.hash.substring(1)).get('access_token')
});
Expand All @@ -12,7 +12,11 @@ sidebar_link: false

# DuckDB GSheets

{#if authCode}
{#if authCode === 'pending'}

## Authorization Pending

{:else if authCode}

## Authorization Successful

Expand All @@ -22,7 +26,6 @@ Copy the token below and paste it into your DuckDB GSheets application:

{:else}


## Authorization Failed

No token was received. Please try the authorization process again.
Expand Down

0 comments on commit bb19e7c

Please sign in to comment.