this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix minor typos

pomdtr 2a31bd72 db0dcf28

+5 -4
+1 -1
auth/session.go
··· 14 14 type Session struct { 15 15 ID string `json:"id"` 16 16 Email string `json:"email"` 17 - Domain string `json:"app"` 17 + Domain string `json:"domain"` 18 18 CreatedAt time.Time `json:"createdAt"` 19 19 ExpiresAt time.Time `json:"expiresAt"` 20 20 }
+3 -2
auth/token.go
··· 69 69 return err 70 70 } 71 71 72 - if err := os.MkdirAll(tokenDir(), 0700); err != nil { 72 + tokenPath := tokenPath(token.ID) 73 + if err := os.MkdirAll(filepath.Dir(tokenPath), 0700); err != nil { 73 74 return err 74 75 } 75 76 76 - if err := os.WriteFile(tokenPath(token.ID), tokenBytes, 0600); err != nil { 77 + if err := os.WriteFile(tokenPath, tokenBytes, 0600); err != nil { 77 78 return err 78 79 } 79 80
+1 -1
utils/dirs.go
··· 18 18 } 19 19 20 20 func DataDir() string { 21 - return filepath.Join(RootDir(), "data") 21 + return filepath.Join(RootDir(), ".smallweb", "data") 22 22 }