Skip to content

Commit c7d01c0

Browse files
committed
TODOs
1 parent 2d07169 commit c7d01c0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkgs/client/context.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ type ContextResp struct {
1414
GuildID string `json:"guild_id"`
1515
GuildName string `json:"guild_name"`
1616
CurrentContext bool
17+
//TODO: *JWTToken
1718
}
1819

20+
//TODO: Serialize future JWT token to server here, verifying ident w/ Oauth token
21+
1922
func NewContext(url string, guildid string) *ContextResp {
2023
// Create a request to the endpoint
2124
req, err := http.NewRequest("GET", url+"/api/context", nil)

pkgs/server/api.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ func ContextHandler(w http.ResponseWriter, r *http.Request) {
6060
guildID := r.Header.Get("X-Discord-GuildId")
6161
guild, err := GetGuildInfo(GetSession(cfg), guildID)
6262
if err != nil {
63-
//If error contains 404, it means the guild was not found
6463
if strings.Contains(err.Error(), "404") {
6564
http.Error(w, "Guild not found", http.StatusNotFound)
6665
return

0 commit comments

Comments
 (0)