-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: add mock user functionality (#25)
* initiate the routing operation * feat(auth): launch social auth * feat: complete the oauth log in flow * feat: use go_router for navigation * fix: go router doesn't work * feat: add transition to the sign up screen * feat: add the new routes * refactor: use go router instead or navigator * feat: separate the local and remote repository for the auth * same as before * feat: mock the user authentication process * fix: not using go_route in settings * feat: add temporarly log out functionality
- Loading branch information
1 parent
23dee9d
commit 9b055c7
Showing
11 changed files
with
199 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// ignore_for_file: non_constant_identifier_names | ||
|
||
import 'package:flutter_dotenv/flutter_dotenv.dart'; | ||
|
||
final USE_MOCK_DATA = (dotenv.env['USE_MOCK_DATA'] ?? 'false') == 'true'; |
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 @@ | ||
const tokenMock = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNjEwZjQwZjYwZjYwZjYwZjYwZjYwZjYwIn0sImlhdCI6MTYzMTQwNjQwN30.7'; |
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,21 @@ | ||
import 'package:telware_cross_platform/core/models/user_model.dart'; | ||
|
||
const UserModel userMock = UserModel( | ||
username: 'mock.user', | ||
screenName: 'Mocka Mocka', | ||
email: '[email protected]', | ||
status: 'verified', | ||
bio: 'I am a mocking user', | ||
maxFileSize: 30, | ||
automaticDownloadEnable: true, | ||
lastSeenPrivacy: 'recently', | ||
readReceiptsEnablePrivacy: 'enable', | ||
storiesPrivacy: 'private', | ||
picturePrivacy: 'global', | ||
invitePermissionsPrivacy: 'enable', | ||
phone: '+01100663311', | ||
photo: | ||
'https://static1.cbrimages.com/wordpress/wp-content/uploads/2023/05/jujutsu-kaisen-gojo-223.jpg', | ||
); | ||
|
||
const userMockPassword = 'qwerty99'; |
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
Oops, something went wrong.