Manojit Ghosh • about 5 years ago
How can we use multiple callbacks?
In my app, I have two types of users, for instance, user type a and user type b. I want to handle these two types through two different callbacks. In the developer portal, I can add the second callback url in the next line. What changes are required to be made in the app's code? For instance, in .env, there is one variable named GENOMELINK_CALLBACK_URL. Also, what changes are required to be made in the call to genomeLink.OAuth.authorizeUrl which only takes scope? I appreciate the cooperation of forum members.
Comments are closed.
Kensuke Numakura Manager • about 5 years ago
Thanks for your feedback. Though it is not documented, instead of using GENOMELINK_CALLBACK_URL env var, you can set `callback_url` string as optional parameter together with scope parameter in authorize_url() function:
Hope this helps!