Back to All

Bug in sample code for Social Login

The page https://median.dev/social-login/redirect-demo/ has a syntax error that's likely caused by a search & replace from gonative to "median.co". The error is clear in the console when you load the page. It's on line 146 of the source:

const isMedian.co = navigator.userAgent.indexOf("gonative") >= 0;

The variable should just be "isMedian" as it's used that way in the subsequent code.