Simplified Login

When integrating Wepin into your app service, you can enhance the user experience by implementing Simplified Login. Simplified Login allows users to log into both the app and the Wepin wallet with a single login. This approach improves UX by simplifying the process, reducing the need for multiple logins, and minimizing user drop-off.

Wepin supports two login methods using ID Token and Access Token. Depending on the method, different social login providers can be used, and the token type used varies by the social login provider, as outlined below.

Token TypeSocial Login Auth Provider

ID Token

Google, Apple

Access Token

Discord, Naver

Setting Up ID Token Login

An ID Token is a token containing authentication information about the user, primarily issued by OAuth providers that follow the OIDC (OpenID Connect) standard. In Wepin, you can implement Simplified Login using ID Tokens issued by OIDC-based login providers.

  • Use the loginWithIdToken method to pass the ID Token issued by the OAuth Provider to Firebase and complete the authentication.

  • Afterward, use the loginWepin method to log in to Wepin using the Firebase Token.

Setting Up Access Token Login

An Access Token is a token that provides authentication, access, and modification rights for a user, and is used by most OAuth providers. In Wepin, you can implement Simplified Login using the Access Token provided by the OAuth provider.

  • Use the loginWithAccessToken method to pass the Access Token issued by the OAuth Provider to Firebase and complete the authentication.

  • Afterward, use the loginWepin method to log in to Wepin using the Firebase Token.

You can find information on login-related methods for each SDK on the resources page.

Resource

Last updated