Fixed incorrect token generation route
This commit is contained in:
parent
1ec81f79a8
commit
882d005e8c
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ function loginError(message, code = null) {
|
|||
async function generateToken(username, password) {
|
||||
const credentials = btoa(`${username} ${password}`);
|
||||
|
||||
const response = await fetch("https://account.spfn.net/api/v2/oauth2/generatetoken", {
|
||||
const response = await fetch("https://account.spfn.net/api/v2/oauth2/generate_token", {
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Authorization": `Basic ${credentials}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue