Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sesposito committed Oct 20, 2023
1 parent 6ff69cd commit 45e9a52
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
8 changes: 0 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -296,16 +296,8 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
<<<<<<< HEAD
<<<<<<< HEAD
github.com/heroiclabs/nakama-common v1.28.2-0.20231020105308-855feebe94cb h1:8/oTLaFxc+SpwZdcP0QuSXKPI/OgIvON+ATFc8vzzuk=
github.com/heroiclabs/nakama-common v1.28.2-0.20231020105308-855feebe94cb/go.mod h1:Os8XeXGvHAap/p6M/8fQ3gle4eEXDGRQmoRNcPQTjXs=
=======
>>>>>>> 6a51b6bb (Add refresh token rotation support.)
=======
github.com/heroiclabs/nakama-common v1.28.1 h1:GOH8r27NBSdiBf7xjy2R/Ov7CSr9zp4DVJt9Y2LIbqg=
github.com/heroiclabs/nakama-common v1.28.1/go.mod h1:Os8XeXGvHAap/p6M/8fQ3gle4eEXDGRQmoRNcPQTjXs=
>>>>>>> e68468fe (Revert runtime token api changes)
github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
Expand Down
3 changes: 2 additions & 1 deletion server/api_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ func (s *ApiServer) SessionRefresh(ctx context.Context, in *api.SessionRefreshRe
//session := &api.Session{Created: false, Token: token, RefreshToken: refreshToken}

token, tokenExp := generateToken(s.config, tokenId, userIDStr, username, useVars)
refreshToken, _ := generateRefreshToken(s.config, tokenId, userIDStr, username, useVars)
refreshToken, refreshTokenExp := generateRefreshToken(s.config, tokenId, userIDStr, username, useVars)
s.sessionCache.Add(userID, tokenExp, tokenId, refreshTokenExp, tokenId)
session := &api.Session{Created: false, Token: token, RefreshToken: refreshToken}

// After hook.
Expand Down
8 changes: 0 additions & 8 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,7 @@ github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/internal/genopena
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options
github.com/grpc-ecosystem/grpc-gateway/v2/runtime
github.com/grpc-ecosystem/grpc-gateway/v2/utilities
<<<<<<< HEAD
<<<<<<< HEAD
# github.com/heroiclabs/nakama-common v1.28.2-0.20231020105308-855feebe94cb
=======
# github.com/heroiclabs/nakama-common v1.28.1 => ../nakama-common
>>>>>>> 6a51b6bb (Add refresh token rotation support.)
=======
# github.com/heroiclabs/nakama-common v1.28.1
>>>>>>> e68468fe (Revert runtime token api changes)
## explicit; go 1.19
github.com/heroiclabs/nakama-common/api
github.com/heroiclabs/nakama-common/rtapi
Expand Down

0 comments on commit 45e9a52

Please sign in to comment.