Adds the invite user by email functionality to the client
What is the current behavior?
Although implemented in the api the method isn't exposed on the client and you can't pass in a service_role token/secret
What is the new behavior?
Exposed the invite user by email method on the client, allowing a user to specify a jwt from the client.
Additional context
The random string method in the test suite used to generate emails was causing tests to fail as they were generating uppercase email and GoTrue is returning them as lowercase
What kind of change does this PR introduce?
Adds the invite user by email functionality to the client
What is the current behavior?
Although implemented in the api the method isn't exposed on the client and you can't pass in a service_role token/secret
What is the new behavior?
Exposed the invite user by email method on the client, allowing a user to specify a jwt from the client.
Additional context
The random string method in the test suite used to generate emails was causing tests to fail as they were generating uppercase email and GoTrue is returning them as lowercase