Skip to content

Commit

Permalink
Merge pull request #1 from guzart/guzart-patch-1
Browse files Browse the repository at this point in the history
Update YNAB domain
  • Loading branch information
guzart authored Nov 15, 2023
2 parents 0063d21 + 50f31e4 commit 24f0d1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import './App.scss'
const CLIENT_ID = '71591f4ec6dae7f1ff9a3b58f5a33064478f1b56f3e5a1642352292580bc88a3'

const redirectUrl = window.location.origin + window.location.pathname
const authorizationUrl = `https://app.youneedabudget.com/oauth/authorize?client_id=${CLIENT_ID}&redirect_uri=${redirectUrl}&response_type=token`
const authorizationUrl = `https://app.ynab.com/oauth/authorize?client_id=${CLIENT_ID}&redirect_uri=${redirectUrl}&response_type=token`
const client = new Client()

function App() {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ynab-api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type * as t from './types'

export default class Client {
private accessToken: string = ''
private baseUrl = 'https://api.youneedabudget.com/v1'
private baseUrl = 'https://api.ynab.com/v1'

constructor(accessToken?: string) {
if (accessToken) {
Expand Down

0 comments on commit 24f0d1a

Please sign in to comment.