Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
github.com/ppcamp/go-authentication
Responsible to:
It uses JWT under the hood. It alsos uses Go subpackages. Basing this approach on https://curity.io/resources/learn/jwt-best-practices/
sequenceDiagram
autonumber
User -->> +Api: Wants to create login
Api ->> -User: Create a deactivated login and return token to enable
Note right of User: this token should be sent to user email
User -->> +Api: Want to activate account
Api ->> -User: Check sent token and activate login
User -->> +Api: Request to recover login
Api ->> -User: Create a secret to recover the login and return it
Note left of Api: this secret should be sent to user email
User -->> +Api: Request to update with secret
Api ->> -User: Validate secret and update password
User -->> +Api: When logged, tries to update password
Api ->> -User: Validate JWT and tries to update
User -->> +Api: Tries to login
Api ->> -User: Api validate user and return token
User -->> +OthersServices: wants to get resource
OthersServices ->> -Api: check if JWT is valid
Api ->> +OthersServices: allow
OthersServices ->> -User: return resource
User -->> +Api: invalidate JWTs
Api ->> -User: remove all logged JWTs
User -->> +Api: wants to refresh current JWT
Api ->> -User: return a refreshed JWT
Note that users don't belong to current database and it's response depends on the user's crud to remove them.
erDiagram
users }o--|{ passwords : has
passwords {
serial id
varchar user_id
varchar user_password
bool active
timestamp created_at
timestamp updated_at
}
users {
serial id
}
This project is currently using ECSDA P512 algorithm to auth the JWT token. To generate a new key, type:
# Generates a new key, which should be in some var
ssh-keygen -t ecdsa -b 521
Install
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.