from flask import Flask, request
import pusher
import json
app = Flask(__name__)
pusher_client = pusher.Pusher(app_id='XXXXXX', key='XXXXXXXXXXXXXXXXXXXX',
    secret='XXXXXXXXXXXXXXXXXXXX', ssl=True)


@app.route('/pusher/auth', methods=['POST'])
def pusher_authentication():
    auth = pusher_client.authenticate(channel=request.form['channel_name'],
        socket_id=request.form['socket_id'], custom_data={'user_id':
        request.form['user'], 'user_info': {'state': request.form['state']}})
    return json.dumps(auth)

20792a6d8c7671385b6f6cbb4c8ada31c24a6c4f
<mask token>

<mask token>


@app.route('/pusher/auth', methods=['POST'])
def pusher_authentication():
    auth = pusher_client.authenticate(channel=request.form['channel_name'],
        socket_id=request.form['socket_id'], custom_data={'user_id':
        request.form['user'], 'user_info': {'state': request.form['state']}})
    return json.dumps(auth)

<mask token>
app = Flask(__name__)
pusher_client = pusher.Pusher(app_id='XXXXXX', key='XXXXXXXXXXXXXXXXXXXX',
    secret='XXXXXXXXXXXXXXXXXXXX', ssl=True)


@app.route('/pusher/auth', methods=['POST'])
def pusher_authentication():
    auth = pusher_client.authenticate(channel=request.form['channel_name'],
        socket_id=request.form['socket_id'], custom_data={'user_id':
        request.form['user'], 'user_info': {'state': request.form['state']}})
    return json.dumps(auth)

from flask import Flask, request
import pusher
import json
app = Flask(__name__)
pusher_client = pusher.Pusher(app_id='XXXXXX', key='XXXXXXXXXXXXXXXXXXXX',
    secret='XXXXXXXXXXXXXXXXXXXX', ssl=True)


@app.route('/pusher/auth', methods=['POST'])
def pusher_authentication():
    auth = pusher_client.authenticate(channel=request.form['channel_name'],
        socket_id=request.form['socket_id'], custom_data={'user_id':
        request.form['user'], 'user_info': {'state': request.form['state']}})
    return json.dumps(auth)
