mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: oauth2 api prefix
This commit is contained in:
@@ -47,7 +47,7 @@ onMounted(async () => {
|
|||||||
const sessionState = getStateToken();
|
const sessionState = getStateToken();
|
||||||
|
|
||||||
if (code && state === sessionState) {
|
if (code && state === sessionState) {
|
||||||
const token = await fetch(new URL('/oauth2/token', ACCOUNT), {
|
const token = await fetch(new URL('/api/oauth2/token', ACCOUNT), {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: new URLSearchParams({
|
body: new URLSearchParams({
|
||||||
code,
|
code,
|
||||||
|
|||||||
Reference in New Issue
Block a user