Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

Commit 71f4060

Browse files
Chase R. Crawford (Tek)Chase R. Crawford (Tek)
authored andcommitted
version 1.0.3 release with biometrics
1 parent f0c6c8f commit 71f4060

File tree

3 files changed

+17
-39
lines changed

3 files changed

+17
-39
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# Assimalign LLC
2-
Assimalign LLC is a company based on open source code. The meaning of Assimalign is to assimilate new technology and align them with real world senerios regardless of industry. Within this respository all packages are open source and are inteded to solve particuler problems in real world situations, so please feel free to contribute anytime whether it be updates or ne package additions.
2+
Assimalign LLC is a company based out of Charlotte, North Carlina providing buisness consultation from small to medium size businesses. The code within this repository as well as any other public respository offered by Assimalign are a collection of solution brought on by real-world senerios.
33

4-
Within this particulatr repository please only contribute Javasript or Typescript based packages. Please refer to all other repostories
4+
The meaning of Assimalign is to assimilate new technology and align them with real world senerios regardless of industry. Within this respository all packages are open source and are inteded to solve particuler problems in real world situations, so please feel free to contribute anytime whether it be updates or new package additions.
5+
6+
**However, please do not add code that has any intellectual property rights by comapny. If any contributor violates this policy their code will be immidiately removed, and bebanned from any future contributions. A good rule to follow: If it was coded on your companies time then it's not somthing that should be shared.**
7+
8+
Within this particulatr repository please only contribute Javasript or Typescript based packages. Please refer to all other repostories based on framework supprt.
59

610
## Repostiroy Standards
7-
- I believe in centralized reposories and reducingdependenies accross
8-
# Assimalign Json Packackages
9-
All the package within this respositry are Javascript
10-
##
11+
@TODO
12+
13+
# Assimalign Json Packages
14+
> - [@assimalign/msal-capacitor-plugin](/src)
15+
> This package solves the senerios of using MSAL for Web, IOS, and Android Authentication
16+

src/msal-capacitor-plugin/README.md

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ Using `useContext` hook we will implement an auth provider that will wrap our ap
8888
redirectUri: 'Redirect Uri',
8989
scopes: [
9090
'user.read'
91+
],
92+
iosOptions: [
93+
tokenCache: 'ios or mac keychain location' // This is where your login is cahced
94+
enableBiometrics: true // This will enable Biometcis authentication
9195
]
9296
}))
9397
};
@@ -122,38 +126,6 @@ Using `useContext` hook we will implement an auth provider that will wrap our ap
122126
})
123127
}
124128

125-
126-
const biometricAuth = async(): Promise<boolean> => {
127-
return new Promise(async (resolve, reject)=>{
128-
if(isPlatform('capacitor')) {
129-
NativeBiometric.isAvailable().then(
130-
(result: AvailableResult) => {
131-
const isAvailable = result.isAvailable;
132-
const isFaceId = result.biometryType == BiometryType.FACE_ID;
133-
if (isAvailable) {
134-
NativeBiometric.verifyIdentity({
135-
reason: "For easy log in",
136-
title: "Log in",
137-
subtitle: "Maybe add subtitle here?",
138-
description: "Maybe a description too?"
139-
}).then(()=>{
140-
resolve(true);
141-
}, (error: any)=> {
142-
resolve(false);
143-
})
144-
} else {
145-
// Return true even
146-
resolve(true);
147-
}
148-
}
149-
);
150-
} else {
151-
resolve(true);
152-
}
153-
154-
})
155-
}
156-
157129
const logout = async(): Promise<void> => {
158130
return new Promise(async(resolve, reject)=>{
159131
try {

src/msal-capacitor-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@assimalign/msal-capacitor-plugin",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "A custom Capacitor Plugin for MSAL targeting Web and IOS Platforms",
55
"main": "dist/plugin.js",
66
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)