bnoguchi/everyauth — Issue #139: Awkward to override apiHost
Author: coalitions
Created: 2011-12-19 00:05:13+00:00
State: open

Is there a reason why .fetchOAuthUser typically does a request to this.apiHost() concatenated with some hard-coded string? For example:

rest.get(this.apiHost() + '/contacts/default/full', { // google
this.oauth.get(this.apiHost() + '/user/show', accessToken, function (err, data) { // github

It looks like every module does something similar. I am looking into configuration google OAuth to use an alternate api. I'm blocked from doing so because the other api does not use /contacts/default/full.

As far I can see, apiHost() is typically only referenced in the call. If instead of configuring apiHost, everyauth configured apiUri, it would be easier to make configuration changes.