feat: graphql rate limiting directive

This commit is contained in:
Nick
2019-02-15 16:36:13 -05:00
parent 2b54f6591b
commit 040f840807
5 changed files with 29 additions and 6 deletions

View File

@@ -29,12 +29,12 @@ type AuthenticationMutation {
username: String!
password: String!
strategy: String!
): AuthenticationLoginResponse
): AuthenticationLoginResponse @rateLimit(limit: 5, duration: 60)
loginTFA(
loginToken: String!
securityCode: String!
): DefaultResponse
): DefaultResponse @rateLimit(limit: 5, duration: 60)
register(
email: String!