UNPKG

3.13 kBTypeScriptView Raw
1import { BearerEnv, BaseConfig } from '../types';
2export declare const LOGIN_CLIENT_ID: string;
3export declare const BEARER_ENV: string;
4export declare const BEARER_AUTH_PORT = 45677;
5export declare const BEARER_LOGIN_PORT = 56789;
6export declare const CONFIGS: Record<BearerEnv, BaseConfig>;
7export declare const SUCCESS_LOGIN_PAGE = "\n<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <title>Authentication callback</title>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <style>\n * {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n html,\n body {\n background-color: #f5f7fb;\n font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n text-align: center;\n font-size: 16px;\n line-height: 16px;\n }\n h1 {\n color: #00c682;\n font-size: 2rem;\n font-weight: 600;\n letter-spacing: 0.99px;\n line-height: 29px;\n }\n p {\n color: #343c5d;\n letter-spacing: 0.56px;\n }\n a {\n border-radius: 4px;\n display: inline-block;\n margin-top: 32px;\n padding: 12px 18px;\n background-color: #030d36;\n color: #ffffff;\n font-weight: 600;\n letter-spacing: 0.2px;\n text-decoration: none;\n }\n .outer {\n display: table;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n .middle {\n display: table-cell;\n vertical-align: middle;\n }\n .inner {\n margin-left: auto;\n margin-right: auto;\n max-width: 700px;\n }\n .hint {\n font-size: 0.9rem;\n padding: 1.5rem;\n border: 1px solid #c2c9ea;\n border-radius: 4px;\n background-color: #ffffff;\n position: relative;\n top: 60px;\n margin-bottom: 60px;\n }\n </style>\n </head>\n <body>\n <div class=\"outer\">\n <div class=\"middle\">\n <div class=\"inner\">\n <svg width=\"37\" height=\"40\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M.8 19.2h25.269l-6.635-6.634a.8.8 0 0 1 1.132-1.132l8 8a.8.8 0 0 1 0 1.132l-8 8a.8.8 0 0 1-1.132-1.132L26.07 20.8H.8a.8.8 0 0 1 0-1.6zm14.4 11.2a.8.8 0 0 1 .8.8v6.4a.8.8 0 0 0 .8.8h17.6a.8.8 0 0 0 .8-.8V2.4a.8.8 0 0 0-.8-.8H16.8a.8.8 0 0 0-.8.8v6.4a.8.8 0 0 1-1.6 0V2.4A2.4 2.4 0 0 1 16.8 0h17.6a2.4 2.4 0 0 1 2.4 2.4v35.2a2.4 2.4 0 0 1-2.4 2.4H16.8a2.4 2.4 0 0 1-2.4-2.4v-6.4a.8.8 0 0 1 .8-.8z\"\n fill=\"#00C682\"\n fill-rule=\"nonzero\"\n />\n </svg>\n <h1>Successfully authenticated</h1>\n <p>You can close this window</p>\n <br />\n </div>\n </div>\n </div>\n </body>\n</html>\n";