You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to create API endpoints to handle the process of directing a user to Enode's Link UI.
/enode/link
Redirects the user to the Enode Link UI. This endpoint should give Enode a redirect URI of /enode/link-return.
/enode/link-return
Determines whether or not the link was successful.
If successful, links the current Auth0 user’s clients their newly linked inverters. This becomes the record’s enode_link_uuid, the primary key.
Redirects the user back to a URL given to /enode/link
Here is the respective code for generating a link in our current repo:
We need to create API endpoints to handle the process of directing a user to Enode's Link UI.
/enode/link
/enode/link-return
If successful, links the current Auth0 user’s clients their newly linked inverters. This becomes the record’s enode_link_uuid, the primary key.
Redirects the user back to a URL given to /enode/link
Here is the respective code for generating a link in our current repo:
https://github.com/openclimatefix/pv-sites-mobile/blob/0091e4d54503c872bf90e256eb12d7ae2bd9e454/lib/enode.ts#L70-L83
And here are those respective endpoints in our current repo:
https://github.com/openclimatefix/pv-sites-mobile/blob/0091e4d54503c872bf90e256eb12d7ae2bd9e454/pages/api/%5B...mockApiRoute%5D.ts#L103-L124
The text was updated successfully, but these errors were encountered: