-
Notifications
You must be signed in to change notification settings - Fork 0
Task/sean/str 94 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task/sean/str 94 #18
Conversation
assert.Equal(t, obj1, obj1Decoded) | ||
} | ||
|
||
func TestEncodeDecodeObject(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like these test are quite similar, maybe doing table testing pattern is a good approach here?
return common.StringError(errors.New("wallet not associated with user")) | ||
} | ||
// Encrypt required data to Base64 string and insert it in an email hyperlink | ||
key := os.Getenv("STRING_ENCRYPTION_KEY") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what type of key is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A 32 character sequence which results in SHA256 encryption
Onboarding API is working! Testing instructions:
Add the SendGrid API key to your .env (I will send this to you)
You may need to update the 'network' table in your local string_db be
cause the previous RPC for ETH mainnet is deprecated and we are now using that RPC to verify the users wallet: network.csv
Import the updated Insomnia configuration (it's zipped because Github doesn't allow JSON attachments):
Insomnia_String_API_OCT_31_2022.json.zip
Make sure you have a valid API key and JWT by using Platform Create, Auth Register, Auth Login. Place the API key in the Header as 'X-Api-Key' and place the JWT in the Bearer under Token
Hit all the User endpoints:
EDIT: If you need all the SQL tables they are here:
sql.zip