printNativeGuidance prints post-setup callback URL guidance for native frameworks.
(cli *cli, framework, expoScheme, bundleID string)
| 1149 | |
| 1150 | // printNativeGuidance prints post-setup callback URL guidance for native frameworks. |
| 1151 | func printNativeGuidance(cli *cli, framework, expoScheme, bundleID string) { |
| 1152 | switch framework { |
| 1153 | case "expo": |
| 1154 | if expoScheme != "" { |
| 1155 | cli.renderer.Infof("Note: exp://localhost:19000 is registered for Expo Go development.") |
| 1156 | cli.renderer.Infof("For EAS/production builds, add %s:// to Allowed Callback URLs in the Auth0 Dashboard.", expoScheme) |
| 1157 | } else { |
| 1158 | cli.renderer.Infof("Note: exp://localhost:19000 is for Expo Go development only.") |
| 1159 | cli.renderer.Infof("For EAS/production builds, add your custom scheme URI (e.g., myapp://) to Allowed Callback URLs in the Auth0 Dashboard.") |
| 1160 | } |
| 1161 | case "flutter", "react-native": |
| 1162 | if bundleID != "" { |
| 1163 | cli.renderer.Infof("Add these Allowed Callback URLs in the Auth0 Dashboard:") |
| 1164 | cli.renderer.Infof(" Android: %s://%s/android/%s/callback", bundleID, cli.tenant, bundleID) |
| 1165 | cli.renderer.Infof(" iOS: %s://%s/ios/%s/callback", bundleID, cli.tenant, bundleID) |
| 1166 | } |
| 1167 | case "maui", "dotnet-mobile": |
| 1168 | if bundleID != "" { |
| 1169 | cli.renderer.Infof("Registered %s://callback as the Allowed Callback URL.", bundleID) |
| 1170 | } |
| 1171 | case "ionic-angular", "ionic-react", "ionic-vue": |
| 1172 | if bundleID != "" { |
| 1173 | cli.renderer.Infof("Capacitor app ID: %s", bundleID) |
| 1174 | cli.renderer.Infof("http://localhost is registered as the Allowed Callback URL (Capacitor WebView).") |
| 1175 | } else { |
| 1176 | cli.renderer.Warnf("Could not read Capacitor app ID. Ensure capacitor.config.json or capacitor.config.ts is present in your project root.") |
| 1177 | cli.renderer.Infof("http://localhost is registered as the Allowed Callback URL (Capacitor WebView).") |
| 1178 | } |
| 1179 | case "jhipster": |
| 1180 | cli.renderer.Infof("Refer to JHipster documentation to complete the setup: https://www.jhipster.tech/security/#auth0") |
| 1181 | } |
| 1182 | } |
| 1183 | |
| 1184 | // createQuickstartAPI creates an Auth0 API resource server and optionally links it to an |
| 1185 | // existing application client via a client grant. |
no test coverage detected