Skip to content

Instantly share code, notes, and snippets.

View kevb10's full-sized avatar
🏠
Working from home

Kevin Manase kevb10

🏠
Working from home
View GitHub Profile
@kevb10
kevb10 / backend.md
Created October 16, 2023 15:33
Ligence Backend Assignment

Authentication and Authorization

Description

Your task is to implement Authentication and Authorization with JWT (Access and Refresh tokens)

  • User can signup new account with personal login & password
    – User can login with personal login & password, server returns response with Access token and Refresh token (Refresh token is in advanced scope).
  • Refresh token helps to get new pair Access/Refresh tokens (optional) – User now should use valid Access token to access resources – When the Access token is expired, user can't use it anymore
var e = React.createElement;
console.log("I AM WORKING");
class LikeButton extends React.Component {
constructor(props) {
super(props);
}
render() {
return 'Hello World!';
}
{
"<p>The Lucky Pig was founded by a local fashion designer finally following her passion after 10 years in the garment industry. Always a collector of vintage, she started selling at local markets and eventually made the leap into running her own store in Los Angeles.</p>": "Pig Fashion design Antique Retail Los Angeles",
"Give the gift of vintage this Valentine's Day. To yourself, or to your own someone special.": "Gift Valentine's Day",
"<!--|||\ntype: collaboration;\nsecondary_image: https://cdn.shopify.com/s/files/1/0118/0132/9723/files/densie_hewett-secondary-cropped.jpg?8310930043823045734;\n|||-->\n<p>Denise Hewett is the Founder and CEO of Scriptd, a digital screenplay marketplace to bolster scripts from underrepresented groups. She is a television and digital producer turned startup founder who lives at the intersection of activism, entrepreneurship, and entertainment.</p>\n<p>Below are some of Denise’s favorite items of clothing from her closet. Shop the below to support a good cause. P
name: default
version: 1.15.3
providers:
appengine:
enabled: false
accounts: []
aws:
enabled: false
accounts: []
bakeryDefaults:
2016-05-02 12:36:21.044 Vice Versa[880:290006] Init - QMAuthService service...
2016-05-02 12:36:21.045 Vice Versa[880:290006] Init - QMChatService service...
2016-05-02 12:36:21.054 Vice Versa[880:290006] Init - QMUsersService service...
2016-05-02 12:36:21.067 Vice Versa[880:290060] [QBCore] Request URL:https://api.quickblox.com/login.json
2016-05-02 12:36:21.068 Vice Versa[880:290060] [QBCore] Request method: POST
2016-05-02 12:36:21.068 Vice Versa[880:290060] [QBCore] Request parameters:{
email = "admin@admin.com";
password = 12345678;
}
2016-05-02 12:36:21.068 Vice Versa[880:290060] [QBCore] Request headers: {
PODS:
- Bolts (1.6.0):
- Bolts/AppLinks (= 1.6.0)
- Bolts/Tasks (= 1.6.0)
- Bolts/AppLinks (1.6.0):
- Bolts/Tasks
- Bolts/Tasks (1.6.0)
- FBSDKCoreKit (4.10.0):
- Bolts (~> 1.5)
- FBSDKLoginKit (4.10.0):
### Error
```
ArgumentError - Malformed version number string >= 1.2.2
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/version.rb:61:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/vendor/version.rb:198:in `new'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/vendor/version.rb:198:in `new'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/specification.rb:133:in `name_and_version_from_string'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/lockfile.rb:191:in `block in generate_pod_names_and_versions'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/lockfile.rb:189:in `each'
@kevb10
kevb10 / errorlog.txt
Created May 1, 2016 19:32
cocoapodserrorlog.txt
Update all pods
Re-creating CocoaPods due to major version update.
Updating local specs repositories
Performing a deep fetch of the `master` specs repo to improve future performance
Analyzing dependencies
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
2016-05-01 12:24:44.982 Vice Versa[85973:19778253] [ChatService] Doing Chat disconnect...
2016-05-01 12:24:44.986 Vice Versa[85973:19778253] [ChatService] Presence SNT: <presence type="unavailable"/>
2016-05-01 12:24:44.987 Vice Versa[85973:19778253] [ChatService] Did disconnect
2016-05-01 12:24:45.035 Vice Versa[85973:19776719] Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
2016-05-01 12:24:54.807 Vice Versa[85973:19778252] [ChatService] Connecting to Chat, host: chat.quickblox.com, user JID: 8334346-33477@chat.quickblox.com/71B85435-7F47-47CB-8356-64F7BB80F533
2016-05-01 12:24:55.204 Vice Versa[85973:19778253] [ChatService] Stream did connect, supportsStartTLS: 1
2016-05-01 12:24:55.205 Vice Versa[85973:19778253] [ChatService] Trying TLS...
2016-05-01 12:24:55.440 Vice Versa[85973:19777860] [ChatService] Stream isSecure: YES
2016-05-01 12:24:55.493 Vice Versa[85973:19777860] [
@kevb10
kevb10 / login.m
Created February 23, 2016 18:14
Login user then connect to chat
- (void) loginForMessaging:(NSString *)username andPassword:(NSString *)password withCompletion:(void (^)(BOOL finished))completion {
__weak __typeof(self)weakSelf = self;
[QBRequest logInWithUserLogin:username password:password successBlock:^(QBResponse *response, QBUUser *user) {
if (user) {
__typeof(self) strongSelf = weakSelf;
[[QBChat instance] connectWithUser:user completion:^(NSError * _Nullable error) {
if (!error) {
[strongSelf registerForRemoteNotifications];
completion(true);
} else {