Last active
December 10, 2015 09:49
-
-
Save joshtwist/4417144 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// .NET C# | |
var mobileServiceClient = new MobileServiceClient("<your-app-url>", "<your-app-key>"); | |
mobileServiceClient.CurrentUser = new MobileServiceUser("Foo:123456789"); | |
mobileServiceClient.CurrentUser.MobileServiceAuthenticationToken = "<your-users-JWT>"; |
This file contains hidden or 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
// Javascript | |
var client = new Microsoft.WindowsAzure.MobileServices.MobileServiceClient( | |
"<your-app-url>", | |
"<your-app-key>"); | |
client.currentUser = { | |
userId: "Foo:123456789", | |
mobileServiceAuthenticationToken: "<your-users-JWT>" | |
}; |
This file contains hidden or 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
// Objective C | |
MSClient *client = [MSClient clientWithApplicationURLString:@"<your-app-url>" | |
withApplicationKey:@"<your-app-key>"]; | |
client.currentUser = [MSUser alloc] initWithUserId:@"Foo:123456789"; | |
client.currentUser.mobileServiceAuthenticationToken = @"<your-users-JWT>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment