-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
664 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
ios/skeepcli.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.developer.applesignin</key> | ||
<array> | ||
<string>Default</string> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import appleAuth, { | ||
AppleRequestResponse, | ||
} from '@invertase/react-native-apple-authentication'; | ||
|
||
export const appleClient = { | ||
fetchLogin: async (): Promise<AppleRequestResponse> => { | ||
const response = await appleAuth.performRequest({ | ||
requestedOperation: appleAuth.Operation.LOGIN, | ||
requestedScopes: [appleAuth.Scope.EMAIL, appleAuth.Scope.FULL_NAME], | ||
}); | ||
return response; | ||
}, | ||
getUserAuthState: async (user: string) => { | ||
const response = await appleAuth.getCredentialStateForUser(user); | ||
return response; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {axiosApi} from './axiosInstance'; | ||
import {AuthResponseDto} from '../types/dtos/auth'; | ||
|
||
export const authApi = { | ||
postLoginUser: async (body: { | ||
state: null; | ||
code: string | null; | ||
id_token: string; | ||
user: { | ||
email: string | null; | ||
name: {firstName: string | null; lastName: string | null}; | ||
}; | ||
}): Promise<AuthResponseDto> => { | ||
const response = await axiosApi.post(`/api/auth/apple/login`, body); | ||
return response.data; | ||
}, | ||
|
||
postLogoutUser: async (body: {refreshToken: string}) => { | ||
const response = await axiosApi.post('/api/auth/logoutt', { | ||
refreshToken: body.refreshToken, | ||
}); | ||
return response.data.result; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import axios, {AxiosError, AxiosResponse} from 'axios'; | ||
|
||
export const baseURL = 'https://api.s-keep.site'; | ||
|
||
export const axiosApi = axios.create({ | ||
baseURL, | ||
timeout: 10 * 1000, | ||
headers: { | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json', | ||
}, | ||
withCredentials: true, | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {StyleSheet} from 'react-native'; | ||
import {flexBox} from '../../styles/common'; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
appleButtonStyle: { | ||
...flexBox('column'), | ||
width: '80%', | ||
height: 45, | ||
|
||
shadowColor: '#000', | ||
shadowOffset: { | ||
width: 2, | ||
height: 2, | ||
}, | ||
shadowOpacity: 0.1, | ||
shadowRadius: 4, | ||
}, | ||
}); | ||
export default styles; |
Oops, something went wrong.