Skip to content

Instantly share code, notes, and snippets.

@cllunsford
cllunsford / meteor-oauth-client.js
Created May 4, 2012
Oauth using Meteor and Backbone
View meteor-oauth-client.js
var AUTH_URL = "https://api.glitch.com/oauth2/authorize?response_type=code&client_id=000yourclientid000&redirect_uri=http://yoursitehere/oauth/&scope=identity";
var Auth_Router = Backbone.Router.extend({
routes: {
"": "root",
"oauth/?code=:code": "auth"
},
root: function () {},
auth: function (code) {
Meteor.call('authenticate', code, function (error, result) {
You can’t perform that action at this time.