authgear-demo-app-rn's People
Forkers
randy1yuauthgear-demo-app-rn's Issues
Add option for WebKit Webview
Add an option for "Webkit Webview"
https://docs.authgear.com/how-to-guide/mobile-apps/using-webview-to-open-the-authgear-ui
When enabling this option, show a dialog with "OK" button:
- "Login with Google" and "Passkey" are not supported in Webkit Webview mode.
Change default Authgear config for public release
I'm publishing the Demo App to AppStore and Playstore so we don't need to keep refreshing the testflight build
Please help change the app to use these config in the default:
- endpoint:
demo-app.authgear.cloud
- client ID:
e6b2f5bad8546ee3
Dark mode in webkit webview should have dark frame
Unable to login as Anonymous user
Change "demo-app" to AuthUI v2
Update demo-app.authgear.cloud to use the v2 UI
Dismiss "Copied" toast in 1 second
After copying the user info, the "Copied" toast stayed for ~6, which is too long.
Dismiss that after 1 second.
Support SSO in this demo app
Comments
- Use exact versions for ALL kinds of dependencies https://github.com/authgear/authgear-demo-app-rn/blob/master/package.json#L13
react-navigation
,react-native-paper
,react-native-safe-area-context
,react-native-screens
,react-native-vector-icons
, andreact-native-webview
are runtime dependencies so they belong todependencies
, notdevDependencies
- Install and use prettier to format code
- Use async function and try-finally to ensure loading is false. Currently loading is sometimes left as true https://github.com/authgear/authgear-demo-app-rn/blob/master/src/context/ConfigProvider.tsx#L37
- Use ScrollView instead of TouchableWithoutFeedback to dismiss the keyboard. AFAIK, if there is a scroll view, the keyboard would dismiss itself. https://github.com/authgear/authgear-demo-app-rn/blob/master/src/screens/ConfigurationScreen.tsx#L188
- Configure() should be done in the ConfigContext, not as an effect of AuthenticationScreen https://github.com/authgear/authgear-demo-app-rn/blob/master/src/screens/AuthenticationScreen.tsx#L102
- UserInfoContext is unnecessary. Remove it. Instead, fetch the user info in the UserInfo screen.
- userDisplayName should be a value derived with useMemo instead of useState https://github.com/authgear/authgear-demo-app-rn/blob/master/src/screens/UserPanelScreen.tsx#L78
- Use async function everywhere instead of then(), catch(), and finally(). The control flow expressed in async function is easier to read.
useEffect(() => {
async function do() {
setLoading(true);
try {
} finally {
setLoading(false);
}
}
do().catch(() => {});
}, []);
change app name on the home screen
To "Authgear Demo"
Replace App icon to Authgear logo
Instead of the default icon.
Use blue logo on white background
Demo App Todo
ref authgear/authgear-server#2208
Screens
- Configuration
- Authentication
- User panel
- User info
Configuration
- Add text input field for endpoint + client id
- Add label button for selecting color scheme
- Add switch for toggling token storage + share session options
- Storage to save config
- Navigate to Authenticate screen on save/cancel/back
Authentication
- Find config in storage when open app
- Auto configure by storage config
- Navigate to Configuration screen if no config is found
- Add configuration button which navigate to Configuration screen
- Perform suitable authentication process for each button
- Signup
- Login
- Login with biometric
- Login as guest
- Navigate to UserPanel screen if authenticated
UserPanel
- Normal user view
- Guest user view
- Info icon button to show current config
UserInfo (scrollable)
- All
UserInfo
fields
"AUTHUI" -> "AuthUI"
use the right capitalization in configuration screen
Change Transient TokenStorage description
No need to show "NO biometric error" in all screens
Update app icon
Update AppStore screenshots
Change SSO description
Remove any reference of "Demo"
Upgrade xcode version to larger than 15
Got and error on pushing to testlight.
This app was built with the iOS 16.4 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution.
Support iPad/Tablet
Open the app in bigger screens like iPad with responsive elements
Failed to build android app due to zipalign missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.