Skip to content

Commit

Permalink
api /auth get->post
Browse files Browse the repository at this point in the history
  • Loading branch information
kwangjong committed Jan 27, 2025
1 parent a2e6b9e commit f063210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function authGuard() {
let tok: string|null = getToken();
if (tok != null) {
await fetch(`https://107106.xyz/auth`, {
method: 'DELETE',
method: 'POST',
headers: {
'Token': tok,
}
Expand All @@ -25,7 +25,7 @@ export async function isAuthed() {
let tok: string|null = getToken();
if (tok != null) {
let result : boolean = await fetch(`https://107106.xyz/auth`, {
method: 'GET',
method: 'POST',
headers: {
'Token': tok,
}
Expand Down

0 comments on commit f063210

Please sign in to comment.