-
- Downloads
refresh: bcrypt raw bytes rather than base64 encoded string.
This enables us to control the length of the bytes that will be bcrypted, by default it's 64. Also changed the token's stored form from string('text') to []byte('bytea') and added some test cases for different types of invalid tokens.
Showing
- db/migrations/0005_refresh_token_create.sql 1 addition, 1 deletiondb/migrations/0005_refresh_token_create.sql
- db/migrations/assets.go 3 additions, 3 deletionsdb/migrations/assets.go
- db/refresh.go 17 additions, 11 deletionsdb/refresh.go
- functional/db_test.go 77 additions, 2 deletionsfunctional/db_test.go
- refresh/refreshtest/repo.go 2 additions, 2 deletionsrefresh/refreshtest/repo.go
- refresh/repo.go 17 additions, 16 deletionsrefresh/repo.go
- server/server_test.go 36 additions, 34 deletionsserver/server_test.go
Loading
Please register or sign in to comment