Skip to content

Instantly share code, notes, and snippets.

'''
this is a custom module to extend flask-jwt-extended to work with ember-simple-auth-token
refresh tokens. by default flask-jwt-extended wants the refresh tokens in the header, but
esat sends it in the payload. This is meant to decorate the refresh route like this:
@app.route('/token-refresh', methods=['POST'])
@jwt_esat_refresh_token_required
def do_refresh():
current_user = get_jwt_identity()
ret = {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});