Closed Vinzent03 closed 2 years ago
Wouldn't it be better if the beginning would be equal?
I agree
In other libraries it's GoTrue
, but I think changing GoTrueClient
to GotrueClient
would affect fewer files than GoTrueSession
or GoTrueResponse
. Nevertheless, it would be a simple search and replace.
Besides my raised question, can you merge this? If you want to fix the naming and decided for one variation, I could add that too.
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
You cannot define
GotrueError
orGoTrueClient
as type, because it's not exported. In addition, it was not possible to specify custom CookieOptions because the class wasn't exported too.What is the new behavior?
Files are now properly exported.
Additional context
In addition, I removed unnecessary imports.
I noticed some types begin with
GoTrue
and some withGotrue
. Wouldn't it be better if the beginning would be equal? Examples:GoTrueClient
GoTrueApi
vsGotrueError
GotrueResponse
GotrueSession