Questions tagged [token]

A token is a string of characters, categorized according to the rules as a symbol (e.g., IDENTIFIER, NUMBER, COMMA). The process of forming tokens from an input stream of characters is called tokenization, and the lexer categorizes them according to a symbol type. A token can look like anything that is useful for processing an input text stream or text file.

A token is the smallest part of an input text with a meaning. A token may be a single character, a symbol, a word or anything that is useful for processing an input text. Tokens are used in processing programming languages or natural languages.

The process of forming tokens from an input stream is called tokenization or lexical analysis. A program or function which performs lexical analysis is called a lexical analyzer, lexer, or scanner.

7573 questions
2
votes
4 answers

ttl not expired in JWT Auth Laravel

'ttl' => null, 'refresh_ttl' => null, I need the token does not expire.. It does not work, it always returns "error": "token expired"
2
votes
0 answers

Mixpanel raw data export authentication error

I am currently trying to use export raw data from mixpanel, here is the url I am using: mixepanel Url (the api key and sig are manipulated, not the real ones) Here is my ajax code: var api_key = 'xxx'; var api_secret = 'xxx'; var expire =…
paperpin
  • 31
  • 3
2
votes
1 answer

Adding a struct to linkedlist in c

I'm trying to add Process-structs to a linked list. Their definitions are as follows. typedef struct { char name[2]; int duration; int priority; int arrival; } Process; typedef struct { Process p; struct LinklistNode*…
rickless
  • 29
  • 1
  • 5
2
votes
1 answer

Facing issue in getting token in ios

I am facing problem in getting the token when I am running the app in my PC. It is working fine when I am running my app on MacBook. This is the error: "Access-Control-Allow-Origin" = "*"; "Cache-Control" = "no-cache"; Connection =…
UGandhi
  • 518
  • 1
  • 8
  • 28
2
votes
1 answer

Difference between Laravel Session:token and csrf_token

Is there a real difference between csrf_token() and Session::token() ? They both seem to produce the same result.
Peon
  • 7,902
  • 7
  • 59
  • 100
2
votes
1 answer

JWT Refresh after user permissions have changed

Quick question about the json web token. When my token is expired, I get a refresh token based on my current token (without validating the current user). So what would happen when I changed the permissions from a user, and he isn't allowed to get…
2
votes
1 answer

Spotify Web API - Requests without Token Authentication

I have been playing around with Spotify's web api, so I can catalogue my music playlist etc. I have been using Ajax to send requests to fetch playlist tracks with my Auth token in the header. I am trying to find a way around using a token; I've had…
sparcut
  • 795
  • 1
  • 10
  • 27
2
votes
1 answer

Adding Security Token to Rabbit MQ Messages

I am new to Rabbit MQ. Please guide me how to add a security token generated by a security token service while sending a message to the queue in Rabbit MQ Server. Description: We are mocking a Messaging Infrastructure with Rabbit MQ as the actual is…
Vijay Athreyan
  • 425
  • 2
  • 6
  • 15
2
votes
1 answer

Session management using json web tokens in microservices

I am trying to figure out how I will manage sessions using json web tokens in a microservice architecture. Looking at the design in this article what I currently have in mind is that the client will send a request that first goes through a…
Kacy
  • 3,330
  • 4
  • 29
  • 57
2
votes
1 answer

Laravel return Csrf error as json

I'm building a mobile app and when a CSRF token isn't present I want to return an error in JSON instead of it returning the "TokenMismatchException" Html page. Is there anyway to do this easily without adjusting the library code?
user1157885
  • 1,999
  • 3
  • 23
  • 38
2
votes
3 answers

Firebase 3.0 Tokens : [Error: Invalid claim 'kid' in auth header.]

I'm trying to create JWT tokens in node.js for use with the REST api in firebase, but when I try to use them, I get the error "Error: Invalid claim 'kid' in auth header." This is my code http.createServer(function (req, res) { var payload = { …
Incinirate
  • 114
  • 2
  • 11
2
votes
2 answers

Is there any chance to use the same token for two different applications in GCM? [Android]

I'd like to know if two applications installed in the same device could share the same token for GCM taking in to account that they will receive messages from the same server. Thanks a lot
Aldridge1991
  • 1,326
  • 6
  • 24
  • 51
2
votes
1 answer

How to control the period of validation of the token in Firebase authentication?

In the previous version of Firebase it was possible to control the period for which the token after authentication would be valid. With the new version, we don't have this control. I can not find in the documentation clear explanation of what is…
drevlav
  • 572
  • 2
  • 6
  • 14
2
votes
2 answers

MSGraph invalid refresh token due to inactivity

We are integrating on our application the Office 365 functionality throught MSGraph rest api and we are currently getting trouble with the validation of Refresh Tokens, this is the response error code from the server on a invalid…
rorgbae
  • 23
  • 1
  • 3
2
votes
1 answer

Tree of lambdas vs tree of discriminated unions

I want to compile a syntax tree to methods of aTurtle module. module Turtle = let rotateDefaultAmount amount state = ... let move vector state = ... This option produces code duplication (There are actually more commands): type…
user2136963
  • 2,526
  • 3
  • 22
  • 41