isRevocableSession.js 434 B

1234567891011121314151617
  1. /**
  2. * Copyright (c) 2015-present, Parse, LLC.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. * @flow
  10. */
  11. export default function isRevocableSession(token
  12. /*: string*/
  13. )
  14. /*: boolean*/
  15. {
  16. return token.indexOf('r:') > -1;
  17. }