Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

strapi login api

import axios from 'axios';

const { data } = await axios.post('http://localhost:1337/auth/local', {
  identifier: 'reader@strapi.io',
  password: 'strapi',
});

console.log(data);
  
        Copied to clipboard!
    
Source by strapi.io #
 
PREVIOUS NEXT
Tagged: #strapi #login #api
ADD COMMENT
Topic
Name
6+4 =