addon/utils/auth.js
function getCookieAuthUrl(nextUri) {
    nextUri = nextUri || config.OSF.redirectUri;
    const loginUri = `${config.OSF.url}login/?next=${encodeURIComponent(nextUri)}`;
    return `${config.OSF.cookieLoginUrl}?service=${encodeURIComponent(loginUri)}`;
}
function getCookieAuthUrl(nextUri) {
    nextUri = nextUri || config.OSF.redirectUri;
    const loginUri = `${config.OSF.url}login/?next=${encodeURIComponent(nextUri)}`;
    return `${config.OSF.cookieLoginUrl}?service=${encodeURIComponent(loginUri)}`;
}
function getCookieAuthUrl ( nextUri ) { nextUri = nextUri || config . OSF . redirectUri ; const loginUri = ` ${ config . OSF . url } ${ encodeURIComponent ( nextUri ) } ` ; return ` ${ config . OSF . cookieLoginUrl } ${ encodeURIComponent ( loginUri ) } ` ; }
Retrieve the correct URL for cookie-based in the OSF, including any additional configurable parameters
@private
@method getCookieAuthUrl
@param {string} nextUri Where to send the browser after a successful login request
@return {string}
Retrieve the correct URL for cookie - based in the OSF including any additional configurable parameters