Skip to content

Commit

Permalink
universal login
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyAvraham committed Mar 28, 2021
1 parent 03b19ed commit 5ce493e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Utils/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const login = async settings => {

// Structure the auth parameters and URL
const params = {
client_id: settings.auth0ClientId,
client_id: settings.client_id,
redirect_uri: redirectUrl,
// response_type:
// id_token will return a JWT token with the profile as described on the scope
Expand Down
5 changes: 3 additions & 2 deletions Utils/Localization.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// import * as Localization from "expo-localization";
import i18n from "i18n-js";

// todo: use i18n-ts instead

i18n.translations = {
en: {
EnterPhone: "Enter PhoneNumber",
EnterPhone: "Universal web login",
EnterFB: "Enter Facebook",
Welcome: "Welcome back",
Logout: "Logout",
Expand Down Expand Up @@ -60,7 +62,6 @@ i18n.translations = {

// Set the locale once at the beginning of your app.
// i18n.locale = Localization.locale;
// i18n.locale = "he"; // this is how u change lenguage
i18n.fallbacks = true;

export function translated(t) {
Expand Down

0 comments on commit 5ce493e

Please sign in to comment.