EnterCode Signup working
- After fetching join code in EnterCode(), it sets networkId attribute on "signup-" (Signup.js)
- Signup.js then includes the attribute in the call body
- Modified all calls to /signout, /profile, /login, /signup to be prefixed by '/auth'
- Added '/auth' to vite config file
- Modified final "else if" statement in .attr in quill.js to return `this.getAttribute(arg1)` instead of `this.getAttribute("")`
This commit is contained in:
@@ -121,7 +121,7 @@ let Global = class {
|
||||
|
||||
async getProfile() {
|
||||
try {
|
||||
const res = await util.authFetch(`${util.HOST}/profile`, {
|
||||
const res = await util.authFetch(`${util.HOST}/auth/profile`, {
|
||||
method: "GET",
|
||||
credentials: "include",
|
||||
headers: {
|
||||
@@ -150,7 +150,7 @@ let Global = class {
|
||||
|
||||
async onLogout() {
|
||||
await util.removeAuthToken()
|
||||
await fetch(`${util.HOST}/signout`, {
|
||||
await fetch(`${util.HOST}/auth/signout`, {
|
||||
method: "GET",
|
||||
credentials: "include"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user