Skip to content

Commit

Permalink
Rename method to withUserEmailPasswordAndCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
mladBlum committed Mar 15, 2024
1 parent 88ecd30 commit 905aacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func WithUserEmailPassword(email, password string) ClientOption {
}
}

func WithEmailPassword(collection, email, password string) ClientOption {
func WithUserEmailPasswordAndCollection(email, password, collection string) ClientOption {
return func(c *Client) {
c.authorizer = newAuthorizeEmailPassword(c.client, c.url+"/api/collections/"+collection+"/auth-with-password", email, password)
}
Expand Down

0 comments on commit 905aacb

Please sign in to comment.